Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Contents of array - Perl DBI question

by suaveant (Parson)
on Aug 02, 2012 at 18:49 UTC ( #985089=note: print w/replies, xml ) Need Help??


in reply to Contents of array - Perl DBI question

To expand on what moritz said, you also don't need to copy @row_B to @record_B before taking a reference. I believe fecthrow_arrayref re-uses the same ref, which requires you to copy the data, but fetchrow_array is returning you the list, so if you use my as moritz said, the ref will change each time you pull a record, simplifying.

Of course, if all you want is an array of arrays of the data, look at fetchall_arrayref in the DBI documentation

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re: Contents of array - Perl DBI question

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985089]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2016-12-08 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (148 votes). Check out past polls.