Course Search:

Request more details:


Perl Introduction/Intermediate

Description:
Perl is a mature, extremely flexible, general-purpose language, which is especially well suited to textual manipulation. In addition to its brilliant built-in facilities, there are vast freely-accessible libraries of Perl code to help build almost every conceivable application. It is for –instance - in many cases the language of choice for implementing web server-based CGI programs. Perl is available free-of-charge. This three-day course covers the basic techniques and programming structures provided by Perl5, suitable for applications of all types. It also covers the basics of web based CGI pro-gramming. It is a ‘hands-on’ course with many brief, practical examples of everyday use of Perl.
  • Cost: Price on application
  • Duration: 3 Days
  • This course is not available as part of our public schedule but can be provided on a customised client specific basis.
Prerequisites:
Students should be familiar with the use of a text editor. Familiarity with the basic concepts of programming would be a distinct advantage
Introduction:
Perl as a practical language
Perl applications and capabilities
Perl flavours
Basics:
Program structure
Standard input, output and error
Input and output functions and constructs
Scalars and simple variables
Data types:
Integers, floats, strings
More on scalar variables/assignment
Special variables
Variable scoping
Expressions, operators and scalar data functions:
Creating expressions using operators
Conversion functions
Simple string functions
Control structures:
Relational expressions
if and related tests
Looping
Expressions modifiers and other control struc-tures
Normal arrays and lists:
Defining normal arrays
Assigning and extracting values
foreach
Array dimensions, extending and reducing ar-rays...pop, shift, push, unshift
Other array functions: sort, reverse, split, join
Functions and subroutines:
Creating your own functions and subroutines
Passing arguments; my() and local() function
defined function
return value
Associative arrays or hashes:
Defining associative arrays
Assigning and extracting values, `unwinding` associative arrays
Associative array functions...keys, values, each, exists, delete
Text files:
Filehandles and opening files for input, output and appending...open
Reading/writing data...use of special variable $_
Closing files...close
die, warn, exit and the special variable $!
File tests, eg -e FILENAME
Using @argv for multi-file processing
In-place editing
format and the write() function:
Defining a format...declaring and defining
Fieldline and fieldholder definition
Invoking a format...the write() function
Changing the filehandle using select()
Top-of-page format
File and Directory Manipulation:
Emulating operating systems commands
Globbing
Directory handles
Time functions:
gmtime(), localtime(), time()
Time-related modules
times()
Regular expressions:
Match operators and range operators
String pattern matching facilities
Introduction to references:
Creating references; dereferencing
Multidimensional arrays via references
Anonymous data structures
Packages and module basics:
Package, use and require keywords
Standard library modules and examples
Using Perl with a web server program:
Preparing a Perl program for web server use
Unbundling data from the client
Sending dynamic HTML documents
Standard modules
Simple CGI


Dublin: 01 6627700 - Cork: 021 4319010 - Limerick: 061 311982

© Professional Training Solutions Limited 1996-2012
CRO No. 252390 - Unit 22, Westland Square, Pearse Street, Dublin 2, Ireland.