Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

amarquis's scratchpad

by amarquis (Curate)
on Feb 15, 2008 at 18:18 UTC ( [id://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; }

Later:

Useless use of private variable in void context at mymodule.pm line 16 +6.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-29 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found