please try (untested)
my $service = $config->{'services'}; foreach $oneservice (@$service){ print $oneservice->{'service'}; }
see perlref for details about references and perldsc for nested data structures
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re: Iterate over complex JSON
by LanX
in thread Iterate over complex JSON
by Northwood128
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |