in reply to Sort routine
this seems a perfect case for a Schwartzian Transform:
Aldo
cheers,@event_queue = map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [$_, split /\t/, $_, 1] } @event_queue;
Aldo
King of Laziness, Wizard of Impatience, Lord of Hubris
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Sort routine
by Aristotle (Chancellor) on Sep 18, 2002 at 20:09 UTC |
In Section
Seekers of Perl Wisdom