On Jun 11, Peter Rabbitson said:

perl -e 'eval { die "Error message:\nVerbose error message:" }; print $@;'
Error message:
Verbose error message: at -e line 1.
                       ^^^^^^^^^^^^^

Is there an easy way to get rid of the marked part?

If you place a newline at the end of your argument to die(), there will be no file and line number information.

--
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to