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


in reply to Datastructure access

One way to dereference the array:
use warnings; use strict; my %data = ( 'QUEUETIME' => '0.046', 'PROPERTY' => { 'DOMAIN' => [ 'a.com', 'b.com', 'c.com' ], 'LIMIT' => [ '1000' ], } ); my @domains = @{ $data{PROPERTY}{DOMAIN} }; for (@domains) { print "$_\n"; } # Same w/out intermediate array: # print "$_\n" for @{ $data{PROPERTY}{DOMAIN} }; __END__ a.com b.com c.com

See also:

Replies are listed 'Best First'.
Re^2: Datastructure access
by slatibart (Sexton) on Oct 27, 2014 at 14:06 UTC
    Thank you very much. Helped me to understand a fundamental mistake I had.