@list = grep !$temp{$_}++, @list; # same thing, shorter. [download]
In reply to Re^2: explain use of increment operator in grep by Anonymous Monk in thread explain use of increment operator in grep by pglenski