Hi
At work, I extensilvely use Try::Tiny. I have many production code with try::Tiny, I highly recommend it.
Here is how use it (Example from my Moose class production code)
#Read the RAWFILE $self->loggerObj()->logDebug("Reading Data from RAW BIN File ".$in +RawFile); try { $rawBuffer = read_file( $inRawFile, { binmode => ':raw' } ) ; } catch { $self->loggerObj()->logError('Can not read RAW BIN File '.$inR +awFile.' '.$_); };
Thanks & Regards,
Bakkiaraj M
My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.
In reply to Re: Do the Monks recommend Try::Tiny for eval work?
by sam_bakki
in thread Do the Monks recommend Try::Tiny for eval work?
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |