in reply to Re: explain use of increment operator in grep
in thread explain use of increment operator in grep

That should be:
@list = grep !$temp{$_}++, @list; # same thing, shorter.

Replies are listed 'Best First'.
Re^3: explain use of increment operator in grep
by gaal (Parson) on Mar 31, 2006 at 06:32 UTC
    Indeed it should! Good catch.