Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Multidimensional Arrays

by Anonymous Monk
on Aug 25, 2004 at 02:19 UTC ( #385560=note: print w/replies, xml ) Need Help??


in reply to Multidimensional Arrays

Thanks for this tutorial, a quick google search lead me to this page. Got the answer I needed faster than by searching the perl docs.

I was trying...
@array[0] = ("a","b","c");
but that didn't work.
What I needed was
@array[0] = ["a","b","c"];
so that I can read a value directly with
$value = $array[$y][$x];

Thanks again.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://385560]
help
Chatterbox?
[holli]: are you sure? or are they mere prjections of my hallucinating mind?
shmem feels uneasy over his guess of the tune for silent night, perl 6 night
[holli]: https://www. youtube.com/watch? v=6H_9QEc6vA8
[holli]: meh, silent night
[holli]: also sad
[shmem]: halluzination beats newspaper in realism, sometimes

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-09-22 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (269 votes). Check out past polls.

    Notices?