If you append a newline to the message you pass to die then it will not append the extra info.
But then the extra info won't be in the log either. Still ... I suppose you can have some variation of this?
warn($_), die "$_\n" for 'my error message';
print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!
In reply to Re^2: error messages without program names or line numbers
by Sidhekin
in thread error messages without program names or line numbers
by EvanK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |