@sorted = map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { (my $tmp = lc $_) =~ s/^the\s+//; [ $_, $tmp ] } @indata;
update: moved parens to the right place on the my.
In reply to Re: File Sorting Question
by wog
in thread File Sorting Question
by vbrtrmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |