No such thing as a small change | |
PerlMonks |
Re: How can I read and print lines that has only one word from a fileby cjf (Parson) |
on Jul 15, 2002 at 03:35 UTC ( [id://181687]=note: print w/replies, xml ) | Need Help?? |
So you want to open a file and print out all lines that only contain one word? If so, this should work:
Let me know if you have any questions. Update: ++'s to tadman for the improvements below.
In Section
Seekers of Perl Wisdom
|
|