in reply to Get values from array
Look at it this way:
$VAR1 = { '12349' => [ { 'name' => 'RIC', 'reference' => '00y77676', } ], 'X334' => [ { 'name' => 'MES', 'reference' => '0089kkjh9', } ], }; my $href = $VAR1->{12349}[0]; print $href, "\n";
What would you want print to do, if handed a hashref? What it does, is it stringifies the reference, and that's what you are seeing.
print "$_ => $VAR1->{12349}[0]{$_}\n" for keys %{$VAR1->{12349}[0]};
...will probably get you a little closer to what you want. Your structure is three levels deep. You're not penetrating it deeply enough.
Dave
|
|---|