Perl: the Markov chain saw | |
PerlMonks |
Re: if statementby tachyon (Chancellor) |
on May 08, 2002 at 05:55 UTC ( [id://164925]=note: print w/replies, xml ) | Need Help?? |
Full marks for using warnings, strict, checking the results of opening your files and posting what you have so far. Assuming that you want to check each line in classified1_sports.dat for the string "unclassified" in lower case then print to good.dat if it is there or bad.dat if it is not then a few minor changes to your code and you are rocking:
cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|