in reply to Golf and Golf
$_{$_}++ or push @_, $_ for @T;
But then I realized that a push in a loop is a grep/map:
@_ = grep { !$_{$_}++ } @T;
-- Chip Salzenberg, Free-Floating Agent of Chaos
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Golf and Golf
by BrowserUk (Patriarch) on Apr 25, 2003 at 18:18 UTC | |
by halley (Prior) on Apr 25, 2003 at 19:42 UTC |