|Perl: the Markov chain saw|
Using Tiny::try with exception classby perlbaski (Acolyte)
|on Oct 10, 2012 at 00:36 UTC||Need Help??|
perlbaski has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to use try catch from Try::Tiny module to catch and exception class object.
I see that try did not throw the error. Any ideas why?. Try::Tiny documentation says that $_ should contain the error. Is try of Try::Tiny module capable of throwing exception class object and can it be stored in $_?
I do not want to use die in the try block because I do not want the program to exit but retry after some time or for some exceptions just ignore them after printing a log message.
Thanks in advance!