![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
" $hashref = { 'Adam' => 'Eve', 'Clyde' => 'Bonnie', }; This doesn't look like anything more than single key/value pairs" That's right, and the example you gave here creates an anonymous hash. The hash has no name, but you are able to access it, not by its name, but be ref. So on the same page, this
creates an anonymous array. When a complex structure like hash of hash of hash is a tree of anonymous hashs, an anonymous hash could just as simple as the example you gave. It is not measured by complexity ;-) In reply to Re: Introduction to anonymous arrays and hashes
by pg
|
|