for my $i ( keys %{ $config->{item} } ) { print $config->{item}->{$i}->{id}, ": "; print $config->{item}->{$i}->{destination_dir}, "\n"; }