http://qs321.pair.com?node_id=1146444


in reply to Do the Monks recommend Try::Tiny for eval work?

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.