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
In reply to Re^2: Remove the location of error from error messages from croak
by Anonymous Monk
in thread Remove the location of error from error messages from croak
by greenhorn_007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |