Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Answer: How cand I find each dimension x,y,z of a 3D arrays

by tilly (Archbishop)
on Apr 09, 2001 at 19:37 UTC ( #71025=categorized answer: print w/replies, xml ) Need Help??

Q&A > arrays > How cand I find each dimension x,y,z of a 3D arrays - Answer contributed by tilly

An important point that nobody has pointed out:
$myArray["service1"]
will not do what you want. If you want to look up things by name, you will need a hash.

For learning and playing around with data structures like this I recommend using Data::Dumper so you can easily see what Perl really has done (which may be very different from what you think it is doing).

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2021-02-24 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?