Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: HoH Sorting by valueby Chmrr (Vicar) |
on Oct 23, 2002 at 17:47 UTC ( [id://207464]=note: print w/replies, xml ) | Need Help?? |
Hashes themselves cannot be sorted -- the closest one can get is to sort either the keys or the values of the hash, then iterate through them. See perldoc -q "sort a hash" perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|