I'm pretty fond of the diamond operator and just feeding a filename to the script when it's called.
#!/usr/bin/perl while (<>) { # do stuff }
and . . .
$ script.pl filenameI guess it's the KISS principle applied to getting data from a file.
|
- apotheon
CopyWrite Chad Perrin |
In reply to Re^2: TIMTOWTDI Challenge: Open a file
by apotheon
in thread TIMTOWTDI Challenge: Open a file
by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |