Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Multidimensional arrays

by hv (Prior)
on Jun 06, 2023 at 16:02 UTC ( [id://11152660]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Multidimensional arrays
in thread Multidimensional arrays

The multidimensional hashes were actually used for multidimensional array (or hash) emulation, before references were added in perl5 to make those and more complex structures far easier. The old style is still supported, but modern reference-based structures are almost always preferable: see $SUBSCRIPT_SEPARATOR.

Also, there is nothing wrong with multidimensional arrays. In fact they are so useful, they even have their own manpage: perllol.

Replies are listed 'Best First'.
Re^4: Multidimensional arrays
by Bod (Parson) on Jun 06, 2023 at 17:15 UTC
    Also, there is nothing wrong with multidimensional arrays

    Thanks hv.
    I feel I was thinking about multidimensional hashes when I recall reading that they shouldn't be used now. See my reply to choroba Re^4: Multidimensional arrays

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-26 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found