We don't bite newbies here... much | |
PerlMonks |
Re: Delete Duplicate Entry in a text fileby sauoq (Abbot) |
on Jun 20, 2012 at 02:41 UTC ( [id://977203]=note: print w/replies, xml ) | Need Help?? |
Assuming you've opened $fh for reading on your fail.txt file or whatever, it should be about as easy as.... You'll have to modify it a bit for those blank lines, if they really appear in your log files. Edit: added my $line = to while loop.
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|