Perl 5 Reference Guide
Contents
Conventions
Command-Line Options
Literals Scalars with Numbers and Arrays
Subroutines, Packages and Modules
Object-Oriented Programming
Arithmetic Functions
Conversion Functions
Structure Conversion
String Functions
Array and List Functions
Regular Expressions
Search and Replace Functions
File Test Operators
File Operations
Input / Output
Formats
Directory Reading Routines
System Interaction
Networking
System V IPC
Miscellaneous
Information from System Files
Perl -Variables
Perl – Operators
Special Variables
Special Arrays
Environment Variables
Conditional and Looping Constructs
The for loop
while and until loops
The foreach loop
The do-while or do-until loop
Basic I/O
Using open and close with files
Looking at All Lines in A File
Using directory handles
Using the die command
The special @ARGV variable
The stat and lstat functions
Using open with system calls
system and exec
Pattern Matching
Use of =~ and !~
The ‘+’, ‘*’, and ‘?’ operators
The special [ ] and ^ characters
Predefined character classes
Pattern Anchors
Matching Options
Use of () and |
The special $& variable
The grep function
Searching and Replacing Patterns
The tr (translation) operator
Subroutines
Declaring and Using Subroutines
The Special @_ variable
Variable Scopes
The local operator
The my operator
Formatting
Formatting and Perl
Different Field Types
Use of select and $=
Use of printf
Formatting Characters
Use of sprintf
References
Dereferencing references
Symbolic References
Anonymous References
Refereces and Subroutines
Object Oriented Programming
Create A Class
The Use of bless
Construction of Objects
The use of use and require
The @INC Array
Example of A “Person” Package
The @ISA Variable