Personal Perl FAQ
Perl HTML documentation
List operations:
Choosing only unique lines from a list, and reversing their order
Loading a list of all lines from a file into a list
to extract all lines containing text between two patterns
File/Filehandle:
reading lines from a file
Loading a list of all lines from a file into a list
Using FileHandle; running an R process
Command Line:
to get the command line arguments into a perl script
String manipulation:
substituting within a string
Some more substituting (tr)
grepping and substituting in a string
to extract all lines containing text between two patterns
Parsing Geoff's input files to html
, demonstrating
converting a string to an integer
splitting strings according to a pattern
combining to form a string
Looping:
foreach looping
Some other example looping
Testing:
Unless
If
If-elif-else
Forking:
Forking
Forking 2
Etc:
To kill a script in the middle (e.g. testing purposes)
Example usage help for scripts
Website maintained by
Andy Long
. Comments appreciated.
aelon@sph.umich.edu