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

Sounds like you need to override die and/or croak. *CORE::GLOBAL::die = sub { ... }
Even better, you could use use ex::override

Be very careful though :)

Replies are listed 'Best First'.
Re^2: Error::Simple or eval{} use to capture &Carp::croak
by Anonymous Monk on Sep 04, 2009 at 02:34 UTC
    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.
      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; };