Efficiency aside (and in the spirit of 'how the hell do I get this to work'), why not use:
???@files = sort { lc $a cmp lc $b } @files;
And as you build your perl skills, revisit the efficiencies of your code.
In reply to Re: Re: Re: noncase-sensitive sorting
by Hagbone
in thread noncase-sensitive sorting
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |