in reply to Access to hash ref element

The [ at the beginning of the structure means it is an array reference. The following { tells us there is a hash reference inside. Therefore, the following should work:
my $test = $data->[0]->{'name'};

which can be shortened to

my $test = $data->[0]{name};

as arraows after ] and } are optional and simple alphanumeric keys are quoted automatically.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Access to hash ref element
by Anonymous Monk on May 28, 2013 at 17:46 UTC
    That's right! Thanks for it!