Perl Idioms - Table of Contents
Idioms
Embrace && and || for Control and Values
Learn Precedence
Precedence Examples
Warning on ?: Precedence
Don't Overdo `?:'
Mock This Code
Best as an expression
Embrace Pattern Matching
Changing en passant
Negative Array Subscripts
Embrace Hashes
Use Hashes for Sets
Or
Use Hashes for the First Time
Use Hashes of Records, not Parallel Arrays
Oh the horror
Use $_ in Short Code
Versus
Use foreach() Loops
And
Avoid Symbolic References
Using A Hash Instead of $$name
Learn to Switch with for
Switch by Using do{} Creatively
Switch with for via && and ||
Switch Using for and do{} Even More Creatively
Table of Contents
YAPC 19101
, June 2001
Perl Idioms
Nathan Torkington