Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

amarquis's scratchpad

by amarquis (Curate)
on Feb 15, 2008 at 18:18 UTC ( #668212=scratchpad: print w/ replies, xml ) Need Help??

Quick question

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.

sub mysub { $arrayref = shift; ... $arrayref->[$x][$y] = 1; }


Useless use of private variable in void context at line 16 +6.
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2015-11-30 13:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (771 votes), past polls