Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: initializing multiple arrays

by Laurent_R (Parson)
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.

Comment on Re: initializing multiple arrays
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (15)
As of 2014-09-18 15:30 GMT
Find Nodes?
    Voting Booth?

    How do you remember the number of days in each month?

    Results (116 votes), past polls