http://qs321.pair.com?node_id=19871


in reply to Re: Sorting Arrays
in thread Sorting Arrays

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