Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
This server has been replaced.
Please visit our current servers:
http://www.wellho.net/ for Perl, Python, PHP, Lua, Tcl, Apache, Linux, Tomcat, MySQL , C and C++ training
http://www.wellhousemanor.co.uk/ for hotel and conference facilities in Melksham, Wiltshire

Related technical and longer articles
Data Monging
Context - List, scalar and double quotes
Tips and short articles on this subject
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
Lists - Perl module P208
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
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
Opentalk forum discussions related to this topic
Using Grep to search through an array
Operating on every scalar in a list
How to split a file but not line by line
Context
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 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.


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