http://qs321.pair.com?node_id=549439


in reply to Re^2: array references in DBI
in thread array references in DBI

Yes, you would be pushing the same array ref every time, and the contents would change afterwards.

Test code (no DBI involved):

my @rows; my @row = qw(one two); push @rows, \@row; @row = qw(three four); use Data::Dumper; print Dumper \@rows; __END__ $VAR1 = [ [ 'three', 'four' ] ];

As you can see, the contents of the collating array changes after you put it in there.