I have two bits of code that produce different output, and I am having great difficulty understanding why.
Code snippet 1:
my @args = $bighash{'arguments'}{'allocations'};
print "$args[0][1]";
Code snippet 2:
my @args = $bighash{'arguments'}{'allocations'}[0];
print "$args[1]";
In the first case, it is printing the value I expect. In the second case, it's not printing anything at all. Can anyone explain this?