good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: sorting a complex multidimensional hashby BrowserUk (Patriarch) |
on Jul 22, 2004 at 20:47 UTC ( [id://376714]=note: print w/replies, xml ) | Need Help?? |
That's not too hard to do:
but it does introduce a limitation. As coded above, the character part of the keys is limited to 4 characters each. They can be shorter but no longer. If this isn't long enough, you must adjust the formats ( 'N A4 N A4 A*' ) to say 'N A10 N A10 A*' for up to 10 chars, in both the pack and the unpack.
In Section
Seekers of Perl Wisdom
|
|