No such thing as a small change | |
PerlMonks |
RE: Re: Sorting Arraysby merlyn (Sage) |
on Jun 26, 2000 at 20:20 UTC ( [id://19871]=note: print w/replies, xml ) | Need Help?? |
Nope. You're using an array slice @x[$y] where you really
want an element $x[$y]. And as pointed out elsewhere, you're using
cmp where you want <=>.
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|