I recently needed to write some code to join a file piped to a perl script. Rather then coding the whole
my $file = $argv;
open (MYFILE, "$argv");
I remembered there being a special perl way of handling files piped to a script. a $_ type thing ( special character) that fills a data structure with the array for you, saving me precious key strokes. Please inform.
"Never underestimate the predicability of stupidity"
- Bullet Tooth Tony, Snatch (2001)