Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Multidimensional arrays within arrays

by Anonymous Monk
on Jan 23, 2013 at 03:19 UTC ( #1014824=note: print w/replies, xml ) Need Help??


in reply to Multidimensional arrays within arrays

Remember this: even though the "array" data-structure in Perl is "only one-dimensional," each element in this (or any other type of ...) data structure can be a reference to "anything at all." Therefore, you can construct data structures of arbitrary complexity. "Multi-dimensional arrays" are the least of what you can do.
  • Comment on Re: Multidimensional arrays within arrays

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014824]
help
Chatterbox?
[james28909]: @{$hash{$key}}$_;
[ikegami]: That should be ${ $hash{$key} }[$_] because it's $a[$_] when you don't use a ref.
[oiskuu]: James, that's an array slice you have there (over some hash value)
[ikegami]: Mini-Tutorial: Dereferencing Syntax

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2017-04-27 19:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (512 votes). Check out past polls.