in reply to Coredump error.
BTW the parentheses make no difference, but are not necessary (and I'm sure you can think of a better way to print the array ;-)).{ my @sortkey2 = sort { lc($names[$sortkey[$a]]) cmp lc($names[$sortkey[$b]]) } @sortkey; @sortkey = @sortkey2; }
|
|---|