Evanovich has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks. I have a quick question. I have the following bit of code:
My problem is several of the $orf values begin with uppercase letters, as opposed to lower case ones. How can I sort these values while ignoring upper/lower case distinctions? Humbly, Evanforeach $orf (sort {$mips{$a} cmp $mips{$b}} keys %mips) { push @mips, $mips{$orf}; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: alphabetize a hash ignoring upper/lower cases
by vladb (Vicar) on May 11, 2003 at 06:12 UTC | |
by halley (Prior) on May 11, 2003 at 12:07 UTC | |
Re: alphabetize a hash ignoring upper/lower cases
by tstock (Curate) on May 11, 2003 at 07:48 UTC | |
by Anonymous Monk on May 11, 2003 at 11:59 UTC | |
Re: alphabetize a hash ignoring upper/lower cases
by bigj (Monk) on May 12, 2003 at 10:27 UTC | |
Re: alphabetize a hash ignoring upper/lower cases
by dragonchild (Archbishop) on May 12, 2003 at 13:51 UTC |
Back to
Seekers of Perl Wisdom