in reply to "strict" violation on "sort" command with perl 5.10
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.
|
|---|