Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Sort hash ref of Hash of Hashesby BioLion (Curate) |
on Jul 06, 2010 at 10:34 UTC ( [id://848179]=note: print w/replies, xml ) | Need Help?? |
You are comparing string values 'PQRST' etc... but using the numerical sort (spaceship '<=>') operator. You should be using cmp. See sort for more info.
Just a something something...
In Section
Seekers of Perl Wisdom
|
|