in reply to Sort Array
See the documentation for sort:
# use <=> instead of default cmp @array = sort { $a <=> $b } @array;
In Section
Seekers of Perl Wisdom
in reply to Sort Array
# use <=> instead of default cmp @array = sort { $a <=> $b } @array;