frankus has asked for the wisdom of the Perl Monks concerning the following question:
What I settled for was a catch-all:
for my $line (sort {unpack('C4',$a) <=> unpack('C4',$b) } keys %$value +) { tinker_with($line); }
Some of the time the job of the Pack is redundant, other times, not so.
Is there a better way of doing this?
--
Brother Frankus.
¤
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: A generic sorting problem
by demerphq (Chancellor) on Jul 19, 2002 at 10:11 UTC | |
Re: A generic sorting problem
by Abigail-II (Bishop) on Jul 19, 2002 at 10:10 UTC | |
Re: A generic sorting problem
by bronto (Priest) on Jul 19, 2002 at 10:50 UTC | |
Re: A generic sorting problem
by choocroot (Friar) on Jul 19, 2002 at 10:17 UTC | |
by demerphq (Chancellor) on Jul 19, 2002 at 10:25 UTC | |
by choocroot (Friar) on Jul 19, 2002 at 13:22 UTC |