In Perl programming (book), I read that I can create a dictionary in which records store an array as follows:
$wife{"Jacob"} = ["Leah", "Rachel", "Bilhah", "Zilpah"];
Say I want to grab the contents of $wife{"Jacob"} in the list. How can i do this?
If I try:
$key = "Jacob"; say $wife{$key};
I get:
ARRAY (0x56d5df8)
which makes me believe that I get the link, not the actual list.
source share