On Wed, Sep 25, 2013 at 6:45 PM, Ken Peng <ken.p...@cloudcache.net> 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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to