Table of Contents
1 The Impatient Introduction to Perl..........................................................................................................71.1 The history of perl in 100 words or less..........................................................................................71.2 Basic Formatting for this Document...............................................................................................71.3 Do You Have Perl Installed.............................................................................................................81.4 Your First Perl Script, EVER..........................................................................................................91.5 Default Script Header......................................................................................................................91.6 Free Reference Material................................................................................................................101.7 Cheap Reference Material.............................................................................................................101.8 Acronyms and Terms....................................................................................................................102 Storage..................................................................................................................................................112.1 Scalars...........................................................................................................................................112.1.1 Scalar Strings.........................................................................................................................122.1.1.1 String Literals.................................................................................................................122.1.1.2 Single quotes versus Double quotes..............................................................................132.1.1.3 chomp.............................................................................................................................132.1.1.4 concatenation.................................................................................................................132.1.1.5 repetition........................................................................................................................132.1.1.6 length..............................................................................................................................132.1.1.7 substr..............................................................................................................................132.1.1.8 split.................................................................................................................................142.1.1.9 join.................................................................................................................................142.1.1.10 qw.................................................................................................................................152.1.1.11 Multi-Line Strings, HERE Documents........................................................................152.1.2 Scalar Numbers......................................................................................................................162.1.2.1 Numeric Literals............................................................................................................162.1.2.2 Numeric Functions.........................................................................................................162.1.2.3 abs..................................................................................................................................162.1.2.4 int...................................................................................................................................162.1.2.5 trigonometry (sin,cos)....................................................................................................172.1.2.6 exponentiation................................................................................................................172.1.2.7 sqrt..................................................................................................................................172.1.2.8 natural logarithms(exp,log)............................................................................................182.1.2.9 random numbers (rand, srand).......................................................................................182.1.3 Converting Between Strings and Numbers.......................................................................192.1.3.1 Stringify.........................................................................................................................192.1.3.1.1 sprintf.....................................................................................................................192.1.3.2 Numify...........................................................................................................................202.1.3.2.1 oct...........................................................................................................................212.1.3.2.2 hex..........................................................................................................................212.1.3.2.3 Base Conversion Overview....................................................................................212.1.4 Undefined and Uninitialized Scalars.....................................................................................222.1.5 Booleans................................................................................................................................232