|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Using Tiny::try with exception classby mbethke (Hermit) |
| on Oct 10, 2012 at 01:33 UTC ( #998107=note: print w/ replies, xml ) | Need Help?? |
|
The problem is that Exception::Class->caught() explicitly checks $@ for the exception object. The method doesn't do much anyway though, so with Try::Tiny you can simplify this to:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||