Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Do the Monks recommend Try::Tiny for eval work?

by sam_bakki (Pilgrim)
on Oct 30, 2015 at 04:57 UTC ( #1146444=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1146444]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2020-12-06 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (65 votes). Check out past polls.

    Notices?