Perl Programming
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.
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.
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
Invoking Perl scripts under UNIX/Linux
Starting Perl scripts via command-line associations under Win32
Getting help with perldoc
Scalars vs. lists vs. hashes
Strings and interpolated strings
Special variables
Creating references to named variables and anonymous data
Building multidimensional arrays
Working with multidimensional hashes
Standard I/O streams
Defining and using file handles
I/O redirection
Extracting important text information
Building on UNIX regular expressions
Changing data with substitutions
Performing, global and case-insensitive matches
Arithmetic
String
Assignment
File
Comparison
Logical
Range
Making decision with if/else/elseif
Creating loops with do, while, until, for and foreach
if and unless as statement modifers
Altering flow with next and last
Constructing switch statements
Defining and calling a subroutine
Passing and receiving parameters
Returning values to the caller
Localising variables, my and local
Extracting local variables with shift
Designing for reusability with modules
Specifying module functions
Incorporating modules in your code
String functions for text manipulation
Processing arrays with list functions
Arranging information with sort
Sorting data on multiple fields
Manipulating file system entries
Reading binary files
Dissecting and creating records with split and join
Formatting tabular output
An introduction to Object Orientation in Perl
Methods, classes and constructors
Surverying and obtaining third-party packages from CPAN
How to use `use`
Defining a schema to employ Object Orientation modules
Calling methods with the -> systax
Passing initialisation parameters