On Monday, April 22, 2002, at 11:53 , Nikola Janceski wrote:
>
> Gosh.. what ever happened to good ol' grep
>
> my %seen;
> @uniq = grep !$seen{$_}++, @array;
http://www.wetware.com/drieux/CS/lang/Perl/Beginners/BenchMarks/
will show you that this works just slightly slower than just
the hashing function....
But clearly way better than everything but jenda's cool piece.
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
