in reply to Re^7: Adding an element to an array
in thread Adding an element to an array

Why wouldn't this work???
for my $row (0..$#data) { push @{ $data[$row] }, $homes_by_names{$row->[1]}; }
Can't use string ("0") as an ARRAY ref while "strict refs" in use

The line number is where I am trying to assign the value into "@data" inside of the foreach loop

Replies are listed 'Best First'.
Re^9: Adding an element to an array
by Anonymous Monk on Oct 15, 2015 at 19:13 UTC
    $row is a number, its not an array ref , $row is $row its not @data