Keep It Simple, Stupid | |
PerlMonks |
Re^3: Sorting a text fileby Anno (Deacon) |
on Mar 15, 2007 at 10:47 UTC ( [id://604957]=note: print w/replies, xml ) | Need Help?? |
You could turn GrandFather's approach around and swap keys and values in the hash:
This is essentially a variant of the Schwartz Transform, using a hash in place of an array to keep the sort field(s). Anno
In Section
Seekers of Perl Wisdom
|
|