Syntactic Confectionery Delight | |
PerlMonks |
Re: Predefined Sortby pc88mxer (Vicar) |
on Jun 20, 2008 at 16:22 UTC ( [id://693182]=note: print w/replies, xml ) | Need Help?? |
Try:
By default sort uses string comparisons. By using <=> you tell it to compare the values as numbers.
In Section
Seekers of Perl Wisdom
|
|