Perl Tutorial: Start
The structure of this tutorial is as follows:
A basic perl program
The first line
Comments and statements
Simple printing
Running the program
Scalar variables
Operations and assignment
Interpolation
Exercise
Array variables
Array assignments
Displaying arrays
Exercise
Filehandling
Exercise
Control structures
foreach
Testing
for
while and until
Exercise
Conditionals
Exercise
String matching
Regular expressions
The $_ special variable
More on REs
Some example REs
Exercise
Substitution and translation
Options
Remembering patterns
Translation
Exercise
Split
Exercise
Associative arrays
Operators
Environment variables
Subroutines
Parameters
Returning values
Local variables