Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Error::Simple or eval{} use to capture &Carp::croak

by SFLEX (Chaplain)
on Sep 04, 2009 at 22:47 UTC ( [id://793619]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Error::Simple or eval{} use to capture &Carp::croak
in thread Error::Simple or eval{} use to capture &Carp::croak

I think the error from croak is sent to warn so maybe you can do something after that error has accrued like this.
$SIG{__WARN__} = sub { my $wn = shift; handle_this_error() if $wn =~ /The_Error_Your_After/i; warn $wn; };


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-06-17 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.