IIRC this will iterate through the keys in lexical order.
http://perldoc.perl.org/functions/sort.htmlfor my $next_key ( sort keys %my_hash )
Neil Watson
watson-wilson.ca
In reply to Re: How to Sort a Hash According to the Keys in the Hash
by neilwatson
in thread How to Sort a Hash According to the Keys in the Hash
by ishootperls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |