Perl Tips
Oneliners
Use perl -le '... print ...' instead of perl -e '... print ... ,"\n";' to get newlines. See man perl for the gory details about -l
Use perl -i.bak with -pe something to modify text and a list of filenames for a safe way to try your perl on files e.g. perl -i.bak -pe 's/^bar/baz/' *
Documentation
perldoc is actually useful:
- perldoc -f function
- perldoc modulek
You can find module documentation for the latest versions on http://search.cpan.org/