On Thu, Oct 10, 2002 at 09:04:34AM +0100, Simon Wistow wrote: > 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.
I don't understand how anyone can say that any construct is used "incorrectly" if the result is the desired one. It may be that they is a better/different way to solve the problem, but thats what perl is all about TMTOWTDI. Graham.