Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: DBI false error

by mje (Curate)
on Sep 19, 2014 at 09:02 UTC ( #1101175=note: print w/replies, xml ) Need Help??


in reply to DBI false error

There are a few things that strike me I think you should fix first. 1. add use warnings 2. you use "$dbh->prepare(xx) or {}" and $sth->execute() or {} but you cannot put a block after or, it looks like a hash (if you enabled warnings you'd have seen that) 3. RaiseError => 1 negates having to do all those xxx or error tests 4. as RaiseError is enabled if your script did not die then there must be something wrong with your code testing for an error.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2019-04-25 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (127 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!