![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: Simon Daveyby physgreg (Scribe) |
on Aug 19, 2002 at 09:44 UTC ( #191122=note: print w/replies, xml ) | Need Help?? |
The internal perl sort command can be used to sort numerically:
The <=> operator returns 0 if the two numbers are equal, -1 if $a<$b and 1 if $a>$b. Hope that helps.
In Section
Seekers of Perl Wisdom
|
|