Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to return $ref from: $ref = $sth->fetchall_arrayref;

by ioannis (Parson)
on Mar 15, 2006 at 01:13 UTC ( #536748=note: print w/ replies, xml ) Need Help??


in reply to How to return $ref from: $ref = $sth->fetchall_arrayref;

I followed your code, and everything is working fine. Data are returned to $ref for outside processing.

Check if your $sqlstatement is properly quoted

I doubt there could possibly be a problem with $sth being out of scope: the statement $a = $b does not copy pointers, it copies the actual data of $b .


Comment on Re: How to return $ref from: $ref = $sth->fetchall_arrayref;
Replies are listed 'Best First'.
Re^2: How to return $ref from: $ref = $sth->fetchall_arrayref;
by hipnoodle (Novice) on Mar 20, 2006 at 13:43 UTC
    Thanks for your help. I persisted, changed the for loop to foreach and it worked. (crazy). Anyway, thanks for letting me know I was on the right track.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-08-31 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (352 votes), past polls