in reply to What is the most memory efficient way to (sort) and print a hash?
while (my ($k, $v) = each %hash) { print "$k\t$v\n"; }
Then pipe to shell's sort -k2n.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What is the most memory efficient way to (sort) and print a hash?
by a_salway (Initiate) on May 29, 2014 at 17:33 UTC | |
by AnomalousMonk (Archbishop) on May 29, 2014 at 17:51 UTC | |
by runrig (Abbot) on May 29, 2014 at 18:25 UTC | |
by no_slogan (Deacon) on May 29, 2014 at 18:14 UTC |