Don't ask to ask, just ask | |
PerlMonks |
Re: Trapping Errors from XML::RSSby Zaxo (Archbishop) |
on Jun 19, 2007 at 03:27 UTC ( [id://621924]=note: print w/replies, xml ) | Need Help?? |
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,
In Section
Seekers of Perl Wisdom
|
|