scratchpad
amarquis
<h4>Quick question</h4>
<p>I have a sub that takes in a ref to an array of arrays, and localizes. I later do something to a cell in the array of arrays to which that ref refers, and I get a "useless use of private variable in void context" error that I don't understand in this context.
<code>
sub mysub {
$arrayref = shift;
...
$arrayref->[$x][$y] = 1;
}
</code>
<p>Later:</p>
<code>
Useless use of private variable in void context at mymodule.pm line 166.
</code>