$hash{'dimension', 'type'};
Yes, these exist and are equivalent to
$hash{ join $;, qw( dimension type ) }
Not something you should use normally. Probably not even worth remembering, but you already did.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
| [reply] [d/l] [select] |
$file{$fileid, 'filename'};
$file{$fileid, 'content'};
I don't use it for new stuff but there is quite a bit of existing code that still uses so I have to deal with it on occasion. I am guessing that's what I read that shouldn't be used now rather than multidimensional arrays. | [reply] [d/l] |
| [reply] [d/l] |
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.
| [reply] |
| [reply] |