For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > June 2005 > Change the format of $@









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Change the format of $@
Peter Rabbitson

2005-06-11, 3:55 pm

Hello,

Consider:
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?

Thanks

Peter

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com