Exercises, examples and other material relating to training module P208. This topic is presented on public courses
Perl Programming,
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] |
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] |
Perl's map function (like array_walk in PHP) allows you to do something to every member of a list - thus it often saves you the need to write a loop into ... http://www.wellho.net/mouth/1828_Per ... rray-.html [short article] |
How do we refer to the elements of a list? By index number, starting at zero and stopping one short of the number of elements in the list. So a 20 ... http://www.wellho.net/mouth/1304_Las ... -list.html [short article] |
It's always a pleasure to run private courses - for when a questions that's a little bit away from the normal comes up, I can take time to provide a full ... http://www.wellho.net/mouth/1918_Per ... mples.html [short article] |
A list is a collection of scalars. If you know any other programming languages, you might think this sounds like an array. It does Ð it can do everything that an array can do, and much more too.
This topic is presented on public courses
Perl Programming,
Perl bootcamp
Examples from our training material
| 404h | Exercise answer - looking for all "404" accesses from certain hosts |
| 404hunter | Look for all "error 404" pages from certain hosts. |
| booklook | chomp, grep, split, unshift and join example |
| c1 | Context, and splitting a list into named scalars |
| cont2 | List, scalar and double quote contexts |
| context | context demonstration |
| dmore | dicey list sample answer |
| dow | Anonymous list example |
| fanlist | List functions such as chomp and push in use |
| li1 | First example of a list |
| li2 | looping through a list |
| linelen | Using a list to count records of various lengths |
| odd | Shuffling a list |
| prg | Lottery selection |
| prog.pl | Iterating through a list |
| prog2.pl | mapping a list, iterating a list with your own counter |
| sal2 | Context examples |
| salad | setting up lists, looping through lists, list slices |
| vgrep | Verbose grep - illustration of list slices |
| yumyum | Elegant Context Demo |
Pictures
Chocolate bar fun on a Perl course
Students undertake a Perl practical
With a Perl class in Saudi Arabia
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
Basics.
Creating a list.
Referencing an element in a list.
Changing a list.
The length of a list.
Context.
Summary.
Functions that operate on lists.
Functions that let you manipulate the elements within a list.
Functions that let you re-order a list (returning a new list).
Function to return the length of a list.
Operators that relate to lists.
Operators than manipulate strings and lists.
Iterating through a list.
List slices.
Anonymous lists.
Summary.
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.