Change:
@files = sort { lc(${@$a}[0]) cmp lc(${@$b}[0]) } @$refdataarr ;
To:
@files = sort { lc $a->[0] cmp lc $b->[0] } @$refdataarr ;
You are dereferencing the array reference in $a and $b as @$a and @$b and then trying to dereference that array as an array reference.
In reply to Re: "strict" violation on "sort" command with perl 5.10
by jwkrahn
in thread "strict" violation on "sort" command with perl 5.10
by mstet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |