Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: array references in DBI

by bart (Canon)
on May 15, 2006 at 11:35 UTC ( #549439=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^3: array references in DBI
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://549439]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-07-08 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls