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

I do not want to override die|croak; I want just to be able to do something after they have done their deed, which eval-$@ handles. So could try-catch, but I am unsure about potential problems.
  • Comment on Re^2: Error::Simple or eval{} use to capture &Carp::croak

Replies are listed 'Best First'.
Re^3: Error::Simple or eval{} use to capture &Carp::croak
by SFLEX (Chaplain) on Sep 04, 2009 at 22:47 UTC
    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; };