February 2012
Intermediate to advanced
1184 pages
37h 17m
English
You can create a hash of anonymous arrays as follows:
# We customarily omit quotes when the keys are identifiers.
%HoA = (
flintstones => [ "fred", "barney" ],
jetsons => [ "george", "jane", "elroy" ],
simpsons => [ "homer", "marge", "bart" ],
);To add another array to the hash, you can simply say:
$HoA{teletubbies} = [ "tinky winky", "dipsy", "laa–laa", "po" ];Read now
Unlock full access