Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: initializing multiple arrays

by Laurent_R (Abbot)
on May 30, 2014 at 18:56 UTC ( #1088054=note: print w/ replies, xml ) Need Help??


in reply to initializing multiple arrays

I don't really understand what you are trying to do (partly because you did not say what the content of $array_references[0], $array_references[1], etc. is), but very clearly, I can see that you most probably need another level of indirection. Or, in other words, you probably want to use an array of arrays (AoA) or some more deeply nested structure (perhaps an AoAoA). But you should probably tell us what you are storing in your data structure, rather than telling is how you are thinking to do it now.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1088054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2016-07-28 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (253 votes). Check out past polls.