S
sstark
This is probably a dumb question, but how do I sort so that symbols
always appear before numbers?
foreach my $a (sort keys %HASH){
print $a, "\n";
}
My %HASH keys have a lot of symbols and numbers as their first
characters.
I'm getting a sort order where some symbols (!, %, ", -, etc.) print
first, then any digits print, then another set of symbols , =, @, [,
\, ^) prints after the digits. I understand this has something to do
with the byte order of the character set.
How can I get all of the symbols to print first, and then the digits,
and then the alpha characters?
thanks
Scott
always appear before numbers?
foreach my $a (sort keys %HASH){
print $a, "\n";
}
My %HASH keys have a lot of symbols and numbers as their first
characters.
I'm getting a sort order where some symbols (!, %, ", -, etc.) print
first, then any digits print, then another set of symbols , =, @, [,
\, ^) prints after the digits. I understand this has something to do
with the byte order of the character set.
How can I get all of the symbols to print first, and then the digits,
and then the alpha characters?
thanks
Scott