I'm having trouble creating a hash in which the index
refers to an array.
Here's the array : @check2 = ($LDNvalue, $ALTvalue, $MACHvalue);
Creating the hash : %LdnLine = ($j => @check2);
When I use the following print statement
print "LdnLine = @LdnLine{$j}";
I get only the first value in the @check2 array.
However when I use
print %LdnLine;
I get the entire array.
I'm new to perl and am confused as to why these two
print statements would be different.
The only answer I can come up with is that I've screwed
up creating the hash. Help!