in reply to How to get contents from an array inside a hash

Treat Characters the same as the other fields but as an array reference

#!perl use strict; use Data::Dump 'pp'; my %layout=( 'key' => [{'Characters' => [ 'A','B','C' ]},], ); pp \%layout; foreach my $fld_detail ( @{ $layout{'key'} } ) { my $ar = $fld_detail->{'Characters'}; print @$ar; }
poj

Replies are listed 'Best First'.
Re^2: How to get contents from an array inside a hash
by gingera2z (Initiate) on Dec 05, 2014 at 21:35 UTC
    That was what I needed. Thank you!