in reply to Comparison problem
If you need the arrayref (or the ordering) you could keep a separate hash to track which values have already been inserted. That would look something like:
Or you could use Tie::Hash::Sorted to get the same effect from a hash.push @$x, $digit{$nu} unless $seen{$digit{$nu}};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Comparison problem
by emav (Pilgrim) on Oct 27, 2004 at 22:16 UTC |