in reply to Deciding unique elements of an array
Could it be more simple...?@array_thing = sort @array_thing; foreach (@array_thing) { push @unique if $_ ne $prev; $prev = $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deciding unique elements of an array
by rolfy (Acolyte) on Sep 14, 2005 at 01:21 UTC |