in reply to Delete Duplicate Entry in a text file
update:
I tried this code:
my $lastrow = ""; while (my $line == "fail.txt") { $line =~ /(.*?)\n/; $line = $1; if ($line ne $lastrow) { print $line, "\n"; $lastrow = $line; } }
but didnt processed anything it showed blinking underscore for so long, I think it hangs..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Delete Duplicate Entry in a text file
by Kenosis (Priest) on Jun 20, 2012 at 04:33 UTC | |
by sauoq (Abbot) on Jun 20, 2012 at 11:30 UTC | |
by Kenosis (Priest) on Jun 20, 2012 at 18:44 UTC | |
by sauoq (Abbot) on Jun 21, 2012 at 00:23 UTC | |
by Kenosis (Priest) on Jun 21, 2012 at 04:09 UTC | |
by astronogun (Sexton) on Jun 20, 2012 at 06:32 UTC |