Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: How can I read and print lines that has only one word from a fileby tadman (Prior) |
on Jul 15, 2002 at 04:17 UTC ( [id://181692]=note: print w/replies, xml ) | Need Help?? |
Or alternatively, being a little more accomodating:
You can call this with either one file, or as many as you like. The double-angle-brackets just read in anything from @ARGV. Further, it looks for a single group of "non-space" characters. This includes things with punctuation and such.
In Section
Seekers of Perl Wisdom
|
|