Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: dbi: PrintError and RaiseError

by zwon (Abbot)
on Dec 23, 2008 at 19:08 UTC ( [id://732351]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $dbh->do(...) or handle_error();
    $dbh->do(...) or handle_error();
    $dbh->do(...) or handle_error();
    $dbh->do(...) or handle_error();
    
  2. or download this
    eval {
        $dbh->do(...);
    ...
    if($@) {
        handle_error();
    }
    
  3. or download this
    use Fatal qw(open);
    
    ...
    if($@) {
        # and here we can't say if it was DBI problem or open
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-18 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found