Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: no rows returned for dbi fetchall_arrayref

by toolic (Bishop)
on May 07, 2013 at 16:30 UTC ( #1032508=note: print w/ replies, xml ) Need Help??


in reply to no rows returned for dbi fetchall_arrayref

This should suffice:

if ($result_array) { print "something\n"; } else { print "nothing\n"; }

Also, the DBI POD mentions checking $sth->err


Comment on Re: no rows returned for dbi fetchall_arrayref
Select or Download Code
Replies are listed 'Best First'.
Re^2: no rows returned for dbi fetchall_arrayref
by essej1 (Novice) on May 07, 2013 at 17:07 UTC
    Thanks toolic, exactly what I needed. I had the DOH moment just as I opened your response.
    Paradise: Florida, full tank of gas, no appointments.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2015-07-08 03:26 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 (94 votes), past polls