Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: "Exception" handling and more...

by rob_au (Abbot)
on Nov 26, 2001 at 14:44 UTC ( [id://127515]=note: print w/replies, xml ) Need Help??


in reply to "Exception" handling and more...

With regards to STDERR trapping, I would direct you to the node How can I capture STDERR from an external command? or Capture Error Messages to a File? How? or even how do i redirect STDOUT, STDIN, or STDERR to a FILE? - All found through the beast that is Super Search.

With error handling, I think your best option may be to execute your perl code within a eval statement and examine the value of $@ upon exit from the scope. I would suggest you to have a read through "Error Indicators", also on the perlvar page (right down the bottom).

 

Ooohhh, Rob no beer function well without!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://127515]
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-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found