in reply to Find unique elements in an array
An anonomous hash makes it much more compact.my @uniquelist = keys %{{map {$_=>1} @nonuniquelist}};
------------ :Wq Not an editor command: Wq
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Find unique elements in an array
by BrowserUk (Patriarch) on Apr 05, 2004 at 03:09 UTC |