Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Catching perl warnings and errors

by CukiMnstr (Deacon)
on May 26, 2003 at 14:29 UTC ( #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
Node Status?
node history
Node Type: note [id://260839]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-02-25 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (113 votes). Check out past polls.

    Notices?