You can not have a sorted hash, but you can sort it's keys before use
foreach ( sort { ord($a) <=> ord($b) } keys %hash ) { print "$_ => $hash{$_}\n" }
In reply to Re: Sorting - lower to upper
by ccn
in thread Sorting - lower to upper
by joule
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |