Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Related technical and longer articles
Data Monging
Context - List, scalar and double quotes
Tips and short articles on this subject
Finding text and what surrounds it - contextual grep
The dog is not in trouble
Revision / Summary of lists - Perl
Perl - lists do so much more than arrays
Perl Socket Programming Examples
Out of memory during array extend - Perl
Perl - map to process every member of a list (array)
Perl ... adding to a list - end, middle, start
Filtering and altering Perl lists with grep and map
Last elements in a Perl or Python list
Perl - a list or a hash?
C++ and Perl - why did they do it THAT way?
Breaking bread
Huge data files - what happened earlier?
Queues and barrel rolls in Perl
The fencepost problem
Splitting the difference
Context in Perl
Conventional restraints removed
Course sizes - beware of marketing statistics
Comparison Chart for Perl programmers - list functions
Perl for breakfast
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Perl module P208
Lists
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.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 344596 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho