Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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?
[Discipulus]: M4ver1k are you debug/dump vars in the loops? are you sure you are not quitting the loop earlier?
[Corion]: A good weekstart to everybody!

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2017-11-20 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (285 votes). Check out past polls.

    Notices?