Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Plz help me to create a perl script to catch errors and exceptions

by rvosa (Curate)
on Aug 22, 2007 at 15:16 UTC ( #634385=note: print w/replies, xml ) Need Help??

in reply to Plz help me to create a perl script to catch errors and exceptions

What do you mean by "catch errors and exceptions"? That sort of phrase is typically interpreted to mean something like:
eval { &something_that_throws_exceptions }; if ( $@ ) { &exception_handler }
or even:
use Exception::Class::TCF; try { &something_that_throws_exceptions } catch 'Default' => \&exception_handler;
However, because you're also talking about log files, it sounds like you mean something else. Like how to parse a file? Regular expressions? Writing to files? It's impossible to tell. Maybe you have an example of some lines in the log, and some code you've written so far to show your intentions.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2022-01-25 16:23 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (67 votes). Check out past polls.