How do I print the contents of the array?$VAR1 = { 'last' => [ 'jones', 'smith', 'long' ] };
I tried the following:
I think I'm close...and $info is a scalar so I'm assuming I have to use %{$info}foreach my $code ( keys %{$info} ) { print $code . ":"; foreach my $last ( @{$code} ) { print " " . $last; } print "\n"; }
Thanks
In reply to printing hash of array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |