Do you know where your variables are? | |
PerlMonks |
Re: Exception::Class - how to use?by herveus (Prior) |
on Aug 25, 2005 at 10:47 UTC ( [id://486502]=note: print w/replies, xml ) | Need Help?? |
Howdy!
You have the basic flow down, but the "catch" part can be simplified. Exception::Class provides a "caught" method that returns the exception object if it is of the right class or false. See "Catching Exceptions" in the Fine Manual for Exception::Class.
yours, Michael
In Section
Seekers of Perl Wisdom
|
|