in reply to Re: how to speed up dupe checking of arrays
in thread how to speed up dupe checking of arrays
i need them in an array so i adjusted ur code like this
my @rows; my %seen; while (<IN>) { chomp; my ($ele0, $ele1, undef) = split ';', $_, 3; push @rows,"$ele0;$ele1;$file_date" if !$seen{"$ele0;$ele1 +;$file_date"}++; } close(IN);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to speed up dupe checking of arrays
by oha (Friar) on Jul 31, 2007 at 10:46 UTC |