in reply to Dynamically named hashes (w or w/o strict)
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dynamically named hashes (w or w/o strict)
by chrishowe (Acolyte) on Dec 11, 2008 at 15:16 UTC | |
by jeffa (Bishop) on Dec 11, 2008 at 15:27 UTC | |
by chrishowe (Acolyte) on Dec 11, 2008 at 15:37 UTC | |
by Porculus (Hermit) on Dec 11, 2008 at 22:15 UTC | |
by moritz (Cardinal) on Dec 11, 2008 at 15:29 UTC |