Exercises, examples and other material relating to training module P217. This topic is presented on public courses
Perl Programming,
Perl for Larger Projects,
Perl bootcamp
Learning to program in Perl / Perl Programming - Programming Perl - for newcomers to the language
This course introduces you to the Perl programming language.
... http://www.wellho.net/course/ppfull.html [course] |
Learning to Program in Perl / Perl Programming - Learning Perl - whether you're new to programming or 'converting'.
This course covers programming in the ... http://www.wellho.net/course/lpfull.html [course] |
Perl for Larger Projects - Objects, huge data, SQL databases, XML, efficiency and other topics.
This advanced course takes the Perl programmer through
... http://www.wellho.net/course/plfull.html [course] |
Custom course - Custom course
Custom course
This is a custom course that will be tailored to your trainee's needs
and based on their current knowledge ... http://www.wellho.net/course/ccfull.html [course] |
Perl Bootcamp - The fundamentals of the language.
This course covers the fundamentals of the Perl programming
for computer professionals who are new to ... http://www.wellho.net/course/bpfull.html [course] |
Here's a short program that reads data into a hash of lists, sorts the keys and displays output data - a simple Perl program showing powerful capabilities ... http://www.wellho.net/mouth/43_Hash- ... -Perl.html [short article] |
@breakfast = ("Cheese","bread","Tuna");
@lunch = ("chicken","rice");
@tea = ("steak","water","fish");
@today = (\@breakfast,\@lunch,\@tea);
push @lunch,"soup";
... http://www.wellho.net/resources/ex.php4?item=p217/lili [code sample] |
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
| 2ds | Setting up a list of lists (like a 2D array) |
| 2tiny | A list of lists - autovivification |
| ar2 | Combining lists - list of lists v one long list |
| ar3 | Rekeying data |
| ar3.cgi | Rekeying data / presenting it on a web page |
| ar4 | Reading a data file into a structure |
| 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 |
| lili2 | List of lists |
| 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 |
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 700 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.