What must I do to prevent Perl from complaining that "using a hash as a reference is deprecated"?

perl, syntax

Solution

print "%{@{$noss}[$i]}->{$sector} \n\n";

should be nothing more than

print "$noss->[$i]{$sector} \n\n";

or even

print "$$noss[$i]{$sector} \n\n";

without all that rigamarole.

Problem

The code below is from an old Perl script. ``` print "%{@{$noss}[$i]}->{$sector} \n\n"; ``` How should I rewrite the code above so that Perl does not complain that "using a hash as a reference is deprecated"? I have tried all sorts of way but I still couldn't quite get the hang of what the Perl compiler want me to do.

Original source