in reply to Re: Want to sort hashes by values, anyone?
in thread Want to sort hashes by values, anyone?
I never invent wheels, honest!
Just kidding. I realize that, because i'm just a Perl's 'magot'. But i'm still insist on reinventing, since i enjoy to do it :) (that's not in my task's list, though)
Anyway, i made the statement, since i've seen most scalar type can be treated as string, and cmp is suitable for comparison in general. It is safer, although not efficient (need to do conversion).