... if $label should be variable, try
print $hash{$_}{$label} for keys %hash
Update:
or shorter
print $_->{$label} for values %hash
Cheers Rolf
( addicted to the Perl Programming Language)
s/values/keys/ in first expression
In reply to Re: iterate through a hash with two keys
by LanX
in thread iterate through a hash with two keys
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |