Duration: 4 days
• Price: $2260.00 or £1340.00 +VAT
(with hotel room), or
$1900.00 or £1100.00 +VAT
(without room), •
Venue: Melksham, England
COURSE START DATES
|• Tuesday 16 September 2014|
This course introduces you to the Perl programming language.
Early sections of the course, tell you
how variables, calculations, conditionals, assignments, etc. work in
Perl. The course carries on an you'll be learning
about lists, modules, hashes, regular expressions and many other
core Perl topics which don't have equivalents in other languages.
The final sections of the course cover more complex data handling,
using standard and CPAN modules, and a look forward.
There are many practical exercises set during the course, and
you'll find yourself writing useful short applications, both
keyboard-to-screen and web-based. We encourage you to bring your
own data along to use during these sessions.
This course covers version 5 of Perl (the current version), with footnotes
where appropriate to tell you about Perl 6. Our plans for
Perl 6 training
are described on a separate page.
Note - this course is now combined with Learning to program in Perl. We are able to
offer the combined public course more frequently, and most trainees
benefit from the slightly slower pace and additional practicals.
Practical experience in programming in another
computer language, such as C, C++, Java, Shell, Tcl, etc. is an
advantage, but is not mandatory.
Getting the most from your Well House Consultants course
Perl is a very widely used programming language indeed, but it's
name isn't well know outside the programming community as it's an open
source language that lack the marketing "hype" - it's just a superb
technical tool in a very wide variety of applications. It's name - PERL -
stands for the "Practical Extraction and Reporting language" which is
a pretty good sound-bite to tell you what it does.
A new release
of Perl - Perl 6 - has been undergoing development for a considerable time.
Our course covers Perl 5, and will continue to do so while it is dominant,
but also includes a short look ahead to Perl 6 so that new code developers
will be able to take advantage of it once it's available to them.
|Introduction (module P201) What is Perl?.
Perl is a computer language.
What does Perl cost?.
What is Perl used for?.
What computer do I need to run Perl?.
Is Perl loaded onto my computer?.
Perl on Unix (including Solaris and Mac OS X).
Perl on Linux.
Perl on Windows.
How do I find what version I have?.
Macintosh OS X.
Windows 98 / Windows 2000 / Windows NT / Windows XP.
Macintosh OS 9 and earlier.
Loading Perl (Windows XP).
Examples of Perl in use.
Screen locator and counter.
A changing web page.
|Perl Fundamentals (module P202) First Perl program.
Comments and documentation.
Variables and assignments.
Read from operator.
Strings v numbers.
|Conditionals and Loops (module P204) The "if" statement.
The "while" statement.
Add and assign.
Assignments within other statements.
More on the increment operator.
Ways of writing numbers.
|Initial String Handling (module P205) String handling functions.
String handling operators.
qq and q strings.
Comparing strings exactly.
Comparing strings to regular expressions.
|More Loops and Conditionals (module P206) The variety that is Perl.
More conditional statements.
If -- single statement rather than a block.
Unless -- an inverted if statement.
The ? : operator.
More loop statements.
The until loop.
Single statement while and until loops.
The for loop.
The do - while loop.
Breaking a loop.
The goto statement.
|File Handling (module P207) File input and output.
The open function.
Reading from a file handle.
Writing to a file handle.
Closing a file.
Other things you can handle through the file interface.
Floating point formats.
Formats for whole numbers (integers).
Formats for variable text strings.
The Power of Perl
|Lists (module P208) Basics.
Creating a list.
Referencing an element in a list.
Changing a list.
The length of a list.
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.
|Subroutines in Perl (module P209) What are subroutines and why?.
The limitations of "single block code".
First use of subroutines.
Object oriented programming.
Calling a subroutine.
Passing values out of subroutines.
Passing values in to subroutines.
Writing your own subroutine.
Passing parameters in.
Writing subroutines in a separate file.
A test program:.
Writing a class - an introduction.
|Topicalization and Special Variables (module P210) Regular variables in Perl.
Special information variables and the English module.
Reading the command line in Perl.
Special variables that provide controls.
Output control variables.
Special variables provided by Perl operations.
Regular expression match information.
Other special variables you may come across.
Command line options.
|Hashes (module P211) Setting up a hash.
Accessing a hash.
The whole hash.
Processing every element of a hash.
Keys and values.
Ordering a hash (sorting).
Sorting using your own subroutine for comparison.
Operators cmp and <=>.
A more complex sort selector routine.
Sorting with a comparison block.
Looking for matching keys.
Use hashes for stock numbers.
Deleting elements, clearing out hashes.
|More on Character Strings (module P212) Summary to date.
Extracting information from a match.
$1, $2, etc.
Assign to a list.
$`, $& and $’.
More about regular expressions.
What else can I put in regular expressions?.
Global v Greedy.
Some favourite regular expressions.
To match an email address.
To match a UK Postcode.
To match an American Zip code.
To match a date (UK Style).
To match a time.
To match a complete URL for a web page.
To match a Visa number.
To match a Mastercard number.
To match a UK Phone number.
To match a UK car registration plate.
To match a UK national insurance number.
To match a book's ISBN number.
Substitute and execute.
Regular expression efficiency.
Handling binary text.
|More than Simple Lists and Hashes! (module P217) Multidimensional arrays.
Mixing the dimensions.
Something more complex.
Setting up the structure.
Referencing the structure.
Grouping in Perl.
Interpreting a complex reference to a variable.
|Creating your own Classes (module P213) Resume -- using a class.
Background to instance variables.
Variables, addresses of variables, contents of variables.
A first class.
Structure of the class file.
The new method.
Other methods in the class.
Storing information using complex structures.
Writing applications that are independent of the class internals.
Using a scalar to store information within a class.
Using a list to store information within a class.
Using a hash to store information within a class.
Further capabilities of a hash.
The ability to provide generic set and get methods.
|More Objects (module P218) A Generic Class.
Where to look for modules.
Inheritance and hierarchy.
The Base class.
The derived class.
Imports and exports.
Further notes on object orientation.
Extending our earlier generic example.
Application of Perl
|Libraries and Resources (module P219) Standard Perl modules.
Installing from CPAN - an individual module.
Installing from the CPAN - using the CPAN module.
Installing modules via the Perl Package Manager.
What’s on the CPAN?.
Perl information in newsgroups.
A note of caution.
Meeting users, getting local support and training.
Well House Consultants.
|Perl 6 Look Ahead (module P256) Objects.
Conditionals and loops.
for and loop.
Rules and grammar.
Elements with a rule.
Concluding rules and grammar.
Under the bonnet.
TUTOR and COURSE AUTHOR
Graham Ellis - firstname.lastname@example.org
] [about Graham
, England. A taxi transfer can be arranged if you'll be arriving by air
from United States.
can be arranged on site in your country.
Public courses run at
Well House Manor
- our own
purpose fitted training centre and business hotel / conference centre in
• Download Melksham Map - [pdf file (750k)
] • Google Map - [Link
|| 2 students
|| 3 students
|| For 4 or more students
from the same company,
please consider a private course.
| With hotel room
($2712.00 inc VAT) or
(£1608.00 inc VAT)
($2280.00 inc VAT) or
(£1320.00 inc VAT)
| With hotel rooms
($5304.00 inc VAT) or
(£3096.00 inc VAT)
($4440.00 inc VAT) or
(£2520.00 inc VAT)
| With hotel rooms
($7896.00 inc VAT) or
(£4584.00 inc VAT)
($6600.00 inc VAT) or
(£3720.00 inc VAT)
• Multiple discount applies to bookings for second and subsequent delegates on the same running of a course, and on same order.
• Hotel rooms are available for arrival the night before the course starts, for departure after the end of the course on the last day.
For some applications, you'll learn all the Perl you need
on this course. For other applications, you might want to go on
to our advanced Perl courses - Using Perl on the Web
or Perl for Larger Projects
Upon completion of your course, you'll have online access to the source code of
all the examples from the course, and you'll have access to the
"Ask the Tutor" forum
where you can raise questions. We also encourage you to email the tutor, and
to visit us again to use our library as appropriate.
Certification? - [Link
FOR FURTHER INFORMATION
Public (scheduled) courses
For more information about our public courses in general, such as class size, course times, materials provided, special requests, accommodation list, finding our centre, etc.
Terms and Conditions
Covering topics such as delegate substitution, payment, cancellation policy and other matters.