If you had used while( each ), you would have direct access to values (but I suppose that you already know that), similar to your Perl 6 syntax. For completeness sake ...
my %hash = ( 'B' => { 'A' => 4 , 'B' => 8 } ); while ( my ( $k , $v ) = each %{ $hash{'B'} } ) { print "$k : $v\n"; }
In reply to Re: Multidimesional hashs in Perl, C++, C# and Perl6
by parv
in thread Multidimesional hashs in Perl, C++, C# and Perl6
by bsdz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |