in reply to Re: Remove the location of error from error messages from croak
in thread Remove the location of error from error messages from croak
eval{ die 1; }; warn $@; $SIG{__DIE__} = sub{ my( $err ) = @_; $err=~ s/ at .*? line \d+.$/\n/; die $err; }; die 2; __END__ 1 at - line 1. 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Remove the location of error from error messages from croak
by LanX (Saint) on Jul 01, 2014 at 17:28 UTC | |
by Anonymous Monk on Jul 01, 2014 at 17:44 UTC |