in reply to Removing duplicate records in text file
Try this:
. . . Some hand waving here... . . my %een=(); open FIN,"< file.txt" or die $!; my @lines=grep !$een{$_}++,<FIN>; close FIN; . . . whatever else... .
Peter @ Berghold . Net
Sieze the cow! Bite the day!
Test the code? We don't need to test no stinkin' code! All code posted here is as is where is unless otherwise stated.
Brewer of Belgian style Ales
|
|---|