Paxterra Solutions, Inc.

Energy and Operations Efficiency

Training
  Training Course Portfolio  
 

PERL I - Basic Perl Programming


 
 

MODULE 1: GETTING WITH IT SYNTACTICALLY
What is Perl
Perl at the Command Line
-e switch
-n switch
-c switch
-V switch and –v switch
Perl Scripts
What is CPAN
Documentation
Perl Scripts
Print Functions
The print function
The printf function
Literals
Numeric literals
Printing literals
Special literals
Unquoted words
The –w switch and the warnings pragma
Quoting Rules
Here Documents

MODULE 2: THE FUNNY CHARACTERS
Variables
Naming Conventions
Scope and Package
Scalars
Assigning a value to a Scalar Variable
The $_scalar variable
Looping through a file from within a script
Arrays
-Array Slices
-Some Array Functions
-pop function
-push function
-shift
-unshift
-split function
-Join function
-reverse function
Associative Arrays (hashes)
some built in hash functions
Reading from STDIN
Standard Input
Assigning input to a scalar
The read function
Assigning input to an array
Assigning input to an associative array

MODULE 3: OPERATORS AND CONDITIONS
Operators
Operators
Precedence and Associativity
String or number
Arithmetic Operators
Assignment Operators
Relational Operators
Numeric
String
Equality Operators
Logical Operators
Autoincrement and Autodecriment Operators
String Operations
Range Operator
Generating Random Numbers
The rand/srand function

 

 

< back


MODULE 4: What are your Conditions?
Conditional Statements
Loops
The while loop
The do-while loop
The until loop
The for loop
While Vs. for loop
The foreach loop
Loop control
To control the flow of loops
Labels and loops
A labeled Block without a loop
Nested Loops and Labels

Module 5- Regular Expressions, They’re Back!
Regular Expressions
Simple Statements and Modifiers
Conditional Modifiers
Looping Modifiers
Pattern Matching
The match operator
The substitution operator
The Metacharacters
Anchors
The dot
Character sets
Metasymbols to represent single chars
Quantifiers (*+?)
Alternation
Grouping
Capturing patterns ($1 $2 $3 …)
Repeating patterns
Translation-The tr function
Pattern Matching Operators
Greediness On and Off

MODULE 6: Getting a handle on files
User Defined Filehandles
A little about Dying
Open for reading
The close function
Open for writing
The select function
Open for appending
Pipes
The output filter
Input filter
File Positions
The eof function
The seek function
The tell function
Open for reading and writing
Seek with read/write
File testing

MODULE 7: Subroutines
Subroutines
Defining and calling a subroutine
Other ways to call a subroutine
Arguments
Passing by Reference
Making variables private with the my function
Passing by Value and the my function
The Return Statement

 




Fee: $950 Per person (Conditions apply)

 

 

  Disclaimer: Sometimes the specific topics and material taught in the course may be different depending on location and course duration. Please email us if you have questions at Sophia@paxterrasolutions.com.

Copyright © 2007-2008, Paxterra Solutions, Inc. All Rights Reserved.