Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Catching DBI (or other) errors

by virtualsue (Vicar)
on Mar 08, 2006 at 11:24 UTC ( #535144=note: print w/ replies, xml ) Need Help??


in reply to Catching DBI (or other) errors

I suggest that you either replace the curly braces with parentheses, or use 'or' rather than '||':
$query->execute() || ($SQL_FAIL =1); $query->execute() or $SQL_FAIL =1;
'or' has a lower precedence than '=', but '||' has a higher precedence, which is what makes parentheses necessary in your original statement.
Comment on Re: Catching DBI (or other) errors
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2016-04-30 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.