UN31 Perl 5 Scripting
 
Length/Format
3 days
Lecture, discussion, demos and hands-on labs
Description
This course prepares the student to develop programs using the new Perl5 interpretive command processor. Perl is a powerful scripting language that blends a C/CSH syntax with extensive RE parsing, IO facilites, filesystem functions, process control and networking.
Audience
This course is intended for experienced Unix/Windows users, programmers and administrators. Familiarity with one or more of the following is helpful: Unix File/Directory Manipulation, REs, C/Shell Programming, awk/grep, System Functions/Calls. Many Perl5 facilities are also available on Windows platforms.
Key Topics
INTRODUCTION AND BASIC OPERATIONS - Overview and Features; Invoking Scripts, Implicit/Explicit, Cmdline Program Statements/Options, Debug Mode: Variables and NameSpaces, Expressions, Literals, Operators; Simple Terminal I/O; Conditional Statements, if/else/elsif, Blocks, Numeric/String Operators, Case, Conditional Stmt Execution; Looping Constructs, while/until, Iterators, Flow Control next/last/redo, for/each lists; ARGV Cmdline Processing, Token Access, File/Pipe Read Processing

STRING PROCESSING AND REGULAR EXPRESSIONS -
RE Patterns, SuperSet Meta haracters, Operators/Functions m/s/tr, Grouping/Parsing; String Functions length/substr/index, Operators Concat/Repeat;

LIST FACILITIES -
Lists and Arrays, Syntax/Assign, Numeric Indexing, Access, Multiple Dimensions, Manipulating Items shift/push/pop, Combining and Searching split/join/grep, sort/reverse; Associative Arrays, Key Processing, Extracting Data keys/values/delete, each Iterator; ENV Variables; Data Structures

SUBROUTINES -
Subroutines, Declaration & Invocation, Variable Scoping, my/local, Parm Passing/Return Facilities; Variable & List References, Passing Arrays; Packages, require, @INC; Using Modules; BEGIN, END, AUTOLOAD Facilities

FILE AND DIRECTORY PROCESSING FACILITIES -
Open/Close Disk Files & Pipes, Modes, Errors; Reading Variable Length Delimited Data; Formatting Tablular Reports; Reading Fixed Format Records, Templates, pack/unpack Functions, Random IO; FileSystem Commands, Conditional Operators, stat Function, Time Conversions, Create/Remove/Change Directories, Remove/Rename/Link Files, Directory Scanning Facilities

ADMINISTRATIVE FACILITIES AND PROCESS CONTROL -
File Ownership, Mode, TimeStamp Manipulation; NIS Password/Group File Access/Iterators, Network File Iterators; Trapping & Sending Signals, SIG/kill; Creating Processes, system Function; Priority, fork/exec/wait Facilities, Opening/Processing Pipelines
 
Copyright 2011 AJC Information Solutions     http://www.ajcis.com    info@ajcis.com     973.605.8373