![]() |
|
P is for Practical | |
PerlMonks |
Re^5: Sorting hashby ablanke (Prior) |
on Apr 05, 2018 at 22:56 UTC ( #1212388=note: print w/replies, xml ) | Need Help?? |
Hi,
you are right, but you get an warning: Argument "0.04%" isn't numeric in numeric comparison (<=>)the sorting order, in this trivial example, is the same, but who knows what shows up in the real world. so a numeric compare seems to be the more obvious choice in this case. of course there are several ways to get rid of the warnings and using numeric comparison.
In Section
Seekers of Perl Wisdom
|
|