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
In reply to Re: Trapping Errors from XML::RSS
by Zaxo
in thread Trapping Errors from XML::RSS
by 3dkiwi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |