M
mickey
Hi,
I have a has with keys like
Char. 123
Char. 721
Char. 234
and so on, that is a char followed by an integer.
I want to iterate over the whole hash in numerical order. At present using
foreach my $key(sort (keys %char))
sorts them but in lexicographic order. Is there a way in Perl around that?
Thanks,
-M
I have a has with keys like
Char. 123
Char. 721
Char. 234
and so on, that is a char followed by an integer.
I want to iterate over the whole hash in numerical order. At present using
foreach my $key(sort (keys %char))
sorts them but in lexicographic order. Is there a way in Perl around that?
Thanks,
-M