Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Trapping Errors from XML::RSS

by Zaxo (Archbishop)
on Jun 19, 2007 at 03:27 UTC ( [id://621924]=note: print w/replies, xml ) Need Help??


in reply to Trapping Errors from XML::RSS

When you want to trap die-ing code, eval it. Eval will return undefined if the code died and $@ will have the error message.

Update: kyle++ pointed out a major thinko, naming the wrong function, repaired.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found