9/12/2008

Perl Tip: Couple useful stuffs

$` $& $' before match after

\w - type words made up of ordinary letters, digits, and underscores.
\b - anchor matches at the start or end of a group of \w characters

redir all IO's (including STDOUT and STDERR) during command line execution or script execution:
(cmd) >& out

No comments: