On Wed, Oct 09, 2002 at 05:50:35PM -0400, darren chamberlain said:
> I use the one from lib.pm:
> 
>   @nodups = grep { ++$h{$_} == 1 } @dups;

using grep is the other idiom/technique/method/pattern/whatever that
I've seen I just have a sort of irrational fear of grep stemming from
when I was first learning Perl and someone more experienced than I told
me that you very rarely ever need to use it and 99% of the time people
use it incorrectly.

It's just one of those habits I've got into.

Anybody else want to criticise my code? ;)

Simon
surprisingly cheery for a cold addled thursday morning

Reply via email to