Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Re: Catching perl warnings and errors

by CukiMnstr (Deacon)
on May 26, 2003 at 14:29 UTC ( [id://260839]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Catching perl warnings and errors
in thread Catching perl warnings and errors

oh. I understood something else from your first post...

There are many ways to catch exceptions. You could use eval(), but using eval() will not work for warnings from the compiler, from the POD:

Beware that using "eval" neither silences perl from printing warnings +to STDERR, nor does it stuff the text of warning messages into $@.
Or you can use Error as nite_man suggests, but I just made a couple of tests and read the docs and compiler warnings don't seem to be handled by it.

hope this helps,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-18 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found