@array = sort @array; my $j = -1; for my $e (@array) { if ($j < 0 || $array[$j] ne $e) { $array[++$j] = $e; } } $#array = $j;
In reply to Re^4: Howto Avoid Memory Problem in List::MoreUtils
by ikegami
in thread Howto Avoid Memory Problem in List::MoreUtils
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |