The stupid question is the question not asked | |
PerlMonks |
Re: how to speed up dupe checking of arraysby FunkyMonk (Chancellor) |
on Jul 31, 2007 at 10:23 UTC ( [id://629788]=note: print w/replies, xml ) | Need Help?? |
Either @non_dupe_rows is very poorly named, or my @non_dupe_rows = do { my %seen;grep !$seen{$_}++, @rows }; isn't doing what you think it's doing:
prints
If you really want non-dup rows, try
In Section
Seekers of Perl Wisdom
|
|