On Wed, Sep 25, 2013 at 6:45 PM, Ken Peng wrote:
> Does perl have a way to raise a error in module/class then from caller use
> Try::Tiny etc to catch them? Thanks.
You can throw an exception with 'die()' -- see 'perldoc -f die' for
calling syntax.
chrs,
john.
--
To unsubscribe, e-mail: beginn
On 2013-9-26 14:22, Shlomi Fish wrote:
I'm not using Try::Tiny (though many people recommend it), but I use
https://metacpan.org/release/Exception-Class and it works fine. It's not clear
what exactly you're trying to do.
what I asked is how to raise an error from a module/
Hi Ken,
On Thu, 26 Sep 2013 09:45:45 +0800
Ken Peng wrote:
> Does perl have a way to raise a error in module/class then from caller
> use Try::Tiny etc to catch them? Thanks.
>
I'm not using Try::Tiny (though many people recommend it), but I use
https://metacpan.org/release/Exception-Class an
Does perl have a way to raise a error in module/class then from caller
use Try::Tiny etc to catch them? Thanks.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/