Hi
Try this...if my guess is right
%Country= ( 'State1' =>{ 'city'=> [ '1', '9.4495', '97.1521', '22.0331' ] } ); foreach my $state (keys %Country) { foreach my $city (keys %{$Country{$state}}) { for my $c (@{$Country{$state}{$city}}) { print $c; } } }
bye
Don't put off till tomorrow, what you can do today.
In reply to Re: Processing Multilevel Hash
by l.frankline
in thread Processing Multilevel Hash
by beginr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |