Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by sam_bakki (Pilgrim)
on Oct 30, 2015 at 04:57 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1146444]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-24 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found