The short answer is: yes
use strict; use warnings; my %Hash = ( a => [ qw( i ii iii ) ], b => [ qw( iv v vi ) ], ); # one way to do it for my $var ( sort keys %Hash ) { my $array_ref = $Hash{$var}; for my $element ( @{$array_ref} ) { print "$element,"; } } exit;
The foregoing (untested) code is pretty basic, but I often reach for simple things if I want to make what I'm doing crystal clear to others and even myself months down the road.
In reply to Re: Multiple Hash values
by boftx
in thread Multiple Hash values
by chuckawood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |