|
|
|
Perl Programming
|

|
Course Description:
Perl retains its prominence in the development world because
it combines some of the best elements of existing programming
languages like C and C++, scripting languages like awk and
sed, and shell languages like Unix ksh.
The greatest strengths of the Perl language are its text
processing features, its data manipulation abilities and
the ease with which it can interact with operating systems
and database systems and the ability to create CGI programs
for use with web applications.
This Perl course will combine lecture with hands-on programming
to help you become an effective Perl programmer in a short
time. This class will cover the new features introduced
with the latest release of Perl (Version 5) including modules
and object oriented programming. This course will make you
productive quickly, pointing out the essential elements
of the language.
|
Course Duration:
5-days
|
|
Prerequisites and Assumptions:
Participants
should have a basic understanding of application programming.
Experience with any programming language is a plus.
|
|
Recommended Follow-up/RelatedCourses
|
|
|
|
Perl Fundamentals
- What is Perl?
- Perl History and Availability
- Perl Options
- Running Perl Scripts
- Applications Areas
- Data Types
- Basic Concepts(assignment, comments, standard I/O, print)
Scalar Data
- Numbers and Strings
- Literals and Variables
- Numeric Functions (abs, sqrt, rand, etc.
- nterpolation;
- String Functions (chop, chomp, split, length, substr,
index)
Flow Control
- Simple Conditional Statements
- if, elsif, else
- Relational and Logical Operators
- Control Loops
- for/foreach, while/until
- Shortcuts
Arrays
- Literals and Variables
- Creation
- Assignment and Access
- Fast Creation (List Assignment)
- Access (push, pop, shift, unshift)
- Array Context
- Built-in Array Functions (reverse, join, sort, grep, map)
Hashes (Associative Arrays)
- Variables
- Creation
- Assignment and Access
- Hashes as Arrays
- Built-in Hash Functions (delete, exists, keys, values,
each)
File System Interaction
- Basic I/O (STDIN, STDOUT, STDERR)
- Filehandles
- File Handling (open, close, <>, print)
- Error Handling (test operators, die, warn)
- Directory Processing (opendir, readdir, closedir, rmdir)
- System Process Management (pipes)
Regular Expressions
- Pattern Matching
- Templates
- Wildcards and Character Classes
- Quantifiers
- Recovering Previous Matches
- Greedy and Minimal Matching
|
Data Transformation
- Matching Options
- Back Referencing
- Search and Replace
- Transliteration
- Faster Matcher
User Defined Functions
- Using and Creating Functions
- Arguments and Return Values
- Scoping (local, my)
- Prototypes
Generating Reports
- Report Processing
- Defining a Format
- Fine-tuning the Output
- Writing Multiple Reports or Multiple Formats
References
- Creating References
- Using References
- Call by Reference
- Anonymous References
- Multi-dimensional Data Sructures
Modules
and Libraries
- Access and Usage
- Local Libraries
- Standard Distribution and CPAN Modules
- Building Modules
- Controlling Import and Export
Object Oriented Programming
- Using OOP Modules
- Classes and Methods
- Constructors and Destructors
- Inheritance
Persistent Data
- Data Base Management (DBM)
- DBM hashes and Databases
- Open and close Databases
- Using a DBM Database
- Other Perl Database Processes
- Extended Data Type Functionality
CGI/Web Programming
- WWW and the Internet
- Acronym Definitions
- Dynamic HTML
- Saving State
Database Applications
- Standalone Database Access
- Integrate Database Results into CGI Scripts
- DBI/DBD Modules
|
|