in reply to Access to hash ref element
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 |