in reply to insert value into an array
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;
|
---|