![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
RE: sort performanceby Adam (Vicar) |
on Sep 12, 2000 at 02:16 UTC ( #32003=note: print w/replies, xml ) | Need Help?? |
You don't need the foreach loop, otherwise your method is fine (that's how I always do it.) Update: Oh, my mistake... I see that @sortedkeys is the array for the foreach loop. So you are doing fine, although for fun we should try to come up with a bunch of methods and then benchmark them.
In Section
Seekers of Perl Wisdom
|
|