greenhorn_007 has asked for the wisdom of the Perl Monks concerning the following question:
I want to know is there a way to get rid of the location messages from things like die/croak... etc. I know - if you add \n at the end of the message it's okay. But I have something like that to deal with
eval {#something croaks from outside module ; }; if(...){ die "$@\n"}
So we take the result message from $@. Is there some way to get rid of the location at the end? Like specific regular exp, or doing something before the eval, or taking the clear error from somewhere, or something smart I have never even heard of ... :D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove the location of error from error messages from croak
by LanX (Saint) on Jul 01, 2014 at 17:20 UTC | |
|
Re: Remove the location of error from error messages from croak
by Anonymous Monk on Jul 01, 2014 at 17:18 UTC | |
by Anonymous Monk on Jul 01, 2014 at 17:20 UTC | |
by LanX (Saint) on Jul 01, 2014 at 17:28 UTC | |
by Anonymous Monk on Jul 01, 2014 at 17:44 UTC |