my $variable = { key => "value" }; # or push @array, { key => "value", key2 => $value2 }; # access to the items: say $array[0]{key}; # prints ``value''
See perldata, perlreftut and perldsc.
In reply to Re: Dynamically named hashes (w or w/o strict)
by moritz
in thread Dynamically named hashes (w or w/o strict)
by chrishowe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |