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...
To print the value, use print, printf, or say with the same type of a structure.$hash{$_}{$label} = $value for 'a' .. 'h';
--MidLifeXis
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: iterate through a hash with two keys
by hdb (Monsignor) on Apr 29, 2013 at 19:58 UTC | |
by MidLifeXis (Monsignor) on Apr 29, 2013 at 20:03 UTC | |
Re^2: iterate through a hash with two keys
by fionbarr (Friar) on Apr 29, 2013 at 18:02 UTC |
In Section
Seekers of Perl Wisdom