Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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.


Comment on Re: Multidimensional Arrays
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2015-07-01 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (24 votes), past polls