LINUX
LAMP
PERL
PHP
BUILDING CLUSTERS IN LINUX
Duration : 24 Hours
Course Description
The Practical Extraction Report Language (Perl) is a popular and portable scripting language used by anyone who needs to extract and manipulate data coming from text files, log files, databases, pipes etc. Perl is extremely powerful and fast, but easier to learn than languages like C and Java. The student will be able to produce working and meaningful Perl programs upon completion of this course.
 
Prerequisites
Students need to be familiar with the basics of programming and the use of a text editor. Although Perl can run on a number of operating systems, the course is normally taught in a UNIX/Linux or Windows environment.

Suggested follow-on course:
Advanced Perl Programming
 
UNIT 1: Concepts
Welcome: what is Perl?
Perl and the Web
Static Web content
Dynamic Web content
What you'll need
Your first script: hello world
Running your first script on a web server
 
UNIT 2: First Steps
Program flow
Variables
Strings and quotes
More about strings
Brace Expansion
Basic operators
Combined operators
More combined operators
 
UNIT 3: Data Types
Scalars, hashes and arrays
Working with arrays
More about arrays
Array functions
More array functions
Multidimensional arrays
Taking elements out of arrays
More array manipulation
Working with hashes
Extracting data from hashes
Multidimensional hashes
Now you try: Data Types
 
UNIT 4: Making Choices
Introducing conditionals
Conditional operators
Conditional blocks
The equality operator
String comparison operators
else clauses
The elsif ladder
Logical operators
Nested conditionals
Now you try: Choices
 
UNIT 5: Loops and Control Structures
Repetition: the while loop
Using the while loop
The do..while loop
Iteration: the for loop
Looping over an array
Nested loops
The foreach loop
Now you try: Loops
 
UNIT 6: Strings and Pattern Matching
Extracting a substring
Locating a substring
Changing case
Here-document style strings
Introducing regular expressions
Matching simple patterns
Case-insensitive pattern matching
Matching globally
Wildcards
Character sets
Quantifiers
Using quantifiers
Alternation
Subpatterns
Greedy vs non-greedy quantifiers
Examples of non-greedy matching
Replacing using patterns
Subpattern replacement
Subpattern replacement:
Now you try: Strings
 
UNIT 7: Interacting with the Filesystem
Reading from a file
Writing to a file
Reading a files contents at once
Changing the default output filehandle
Reading user input from the command line
An interactive shell script
Refining the script
The script complete
Working with directories
Changing the current working directory
Running executable files
Command-line arguments
Now you try: Interacting with Filesystems
 
UNIT 8: CGI
Running a CGI script on localhost
Checking errors
Uploading your script
Environment variables
Serving HTML
The query string
Accessing GET variables
Handling URL-encoded characters
Using HTML forms
Reading POST data
Now you try: CGI
 
UNIT 9: Intermediate Coding Techniques
About Filters
grep
Regular Expressions
sort
sed
awk
 
UNIT 10: Database Interactivity
Perl and databases
Connection handles
Statement handles
Running the script
Using placeholders in SQL
Now you try: Database Interactivity