Course Search:

Request more details:


Perl Programming

Description:
In this course you will learn to write Perl 5 scripts. You learn to use Perl in your operating system environment and apply Perl built-in functions.
  • Cost: Price on application
  • Duration: 4 Days
  • This course is not available as part of our public schedule but can be provided on a customised client specific basis.
Prerequisites:
Prior experience with an object-oriented or procedural programming language, such as C++, C, or JAVA is assumed. Knowledge of UNIX regular expressions and scripting tools (e.g. Korn Shell, grep, sed, and awk) is helpful.
Introduction to PERL:
Perl strengths: ease of programming with operators, flexibility, execution speed
Text manipulation, the Internet, reusable tool building for system administration
General application areas: networking, text filtering, web application programming
Running Perl Programs:
Invoking Perl scripts under UNIX/Linux
Starting Perl scripts via command-line associations under Win32
Getting help with perldoc
Variable types and contexts:
Scalars vs. lists vs. hashes
Strings and interpolated strings
Special variables
Compound data structures:
Creating references to named variables and anonymous data
Building multidimensional arrays
Working with multidimensional hashes
Managing files and user input:
Standard I/O streams
Defining and using file handles
I/O redirection
Perl regular expressions:
Extracting important text information
Building on UNIX regular expressions
Changing data with substitutions
Performing, global and case-insensitive matches
Perl`s small operator groups:
Arithmetic
String
Assignment
File
Comparison
Logical
Range
Perl support for conventional flow control constructs:
Making decision with if/else/elseif
Creating loops with do, while, until, for and foreach
Perl-specific constructs:
if and unless as statement modifers
Altering flow with next and last
Constructing switch statements
Writing subroutines:
Defining and calling a subroutine
Passing and receiving parameters
Returning values to the caller
Making data work for you:
Localising variables, my and local
Extracting local variables with shift
Creating modules:
Designing for reusability with modules
Specifying module functions
Incorporating modules in your code
Common data manipulation requirements:
String functions for text manipulation
Processing arrays with list functions
Arranging information with sort
Sorting data on multiple fields
I/O and tool building:
Manipulating file system entries
Reading binary files
Dissecting and creating records with split and join
Formatting tabular output
How Perl implements object orientation:
An introduction to Object Orientation in Perl
Methods, classes and constructors
Surverying and obtaining third-party packages from CPAN
Accessing Object Orientation packages:
How to use `use`
Defining a schema to employ Object Orientation modules
Calling methods with the -> systax
Passing initialisation parameters


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.