As well as lists and hashes, Perl has the capability of handling collections of data in more complex structures; you're limited only by your ingenuity! A study of these more complex structures is vital if you're to understand how Object Orientation works in Perl, and the subject is equally essential if you're going to be doing serious data munging without using objects.
This topic is presented on public courses
Perl Programming,
Perl for Larger Projects,
Perl bootcamp
Examples from our training material
| 2tiny | A list of lists - autovivification |
| deal | A list of lists - dealing a pack of cards |
| deal2 | List of lists - flexible example |
| hali | Example of a hash of lists |
| lili | lists of lists - like a multidimensional array |
| multikey | A Hash of lists - a more complex example |
| revise | Revision of reference notations in Perl |
| rn2 | Pushing a list v pushing a reference to a list |
| rq2d | Setting up a hash of lists |
| rrr | Setting up a list of lists (like a 2D array) from a file |
Opentalk forum discussions related to this topic
help with creating 2D array in perl requestedVariable call subroutinehow to create a two dimensional arraySorting a list of hashesFILE CONVERSION TO AN ARRAY OF ARRAYSArray referencesAaaaaaargh I am losing my head
Pictures
Two students on a public Perl course in Melksham
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Multidimensional arrays.
Something more complex.
Design matters.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.