http://www.perlmonks.org?node_id=1032538


in reply to Re^4: perl array of hashes help
in thread perl array of hashes help

Hello Ragilla,

The code $all->{text}[0] is equivalent with $all->{text}->[0]. This implies an implicit dereference. Similar with $array_ref->[0].

In the second code, ${$all->{text}}[0] is similar with $array[0], because $all->{text} is an ARRAY REF, and @{ARRAY_REF} is similar with @array, which can lead to ${ARRAY_REF}[index].