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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |