Hello,
I read in a book that I can create a hash of arrays like this :
In this code, each key is associated with a reference to an array.
My question is can I set it up so that each key is associated with
an array - not a reference to an array?
I have tried :
But it did not work for me.
Thank you - Akino
I read in a book that I can create a hash of arrays like this :
Code:
%hash = ( "testA" => [77,88], "testB" => [90, 91] );
My question is can I set it up so that each key is associated with
an array - not a reference to an array?
I have tried :
Code:
%hash = ("testA", (77,88), "testB", (90,91) );
Thank you - Akino
Comment