![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: read file from ARGVby Kenosis (Priest) |
on Feb 02, 2013 at 07:24 UTC ( #1016664=note: print w/replies, xml ) | Need Help?? |
Try the following (assuming each word is on a separate line):
Usage: perl script.pl word.txt Update: In case your words are separated by spaces like "foo bar fish cat one two three," even if there are multiple lines, try the following:
In Section
Seekers of Perl Wisdom
|
|