in reply to references troubles
Note that if you wanted to refer to an entire array that is referenced in the structure, you need to use extra curly brackets around the expression that follows the @ sigil:while(($key, $value) = each(%$href)) { $$href{$key}[1][0][0] = 1; ... print "$key/1/0/0 = $$href{$key}[1][0][0]\n"; }
my @toparray = @{$$href{$key}}; my @midarray = @{$$href{$key}[1]}; my @endarray = @{$$href{$key}[1][0]};
|
|---|