I'm developing script, that is reusing some really old piece of perl code.
This line gives me still the error Using a hash as a reference is deprecated .
%hash->{$_[$counter]} = $_[$counter+1];
How I have to refactor this code, so that I will be not receiving the error.
perldoc perldiag
).->
should be a reference, which is a scalar, and%hash
in scalar context shouldn't return a reference to self.