in reply to insert value into an array
You are just wanting to push the value onto the appropriately dereferenced list.
As with some of the other comments, the declaration of the structure leads me to believe that the OP was trying to specify a hash of lists. e.g.push @{$arr[1][1]}, 222;
in which casemy %hoa=("one" => [1,11], "two"=> [2,22]);
push @{$hoa{two}}, 222;
|
---|
In Section
Seekers of Perl Wisdom