http://www.perlmonks.org?node_id=1031266


in reply to iterate through a hash with two keys

What you are doing is trying to assign a value, but not correctly. To assign $value, you could do something like this...

$hash{$_}{$label} = $value for 'a' .. 'h';
To print the value, use print, printf, or say with the same type of a structure.

--MidLifeXis