Subject: | errors setting custom message not displayed by CGI::Carp v3.51 |
Date: | Fri, 15 Feb 2013 17:39:23 +0000 |
To: | bug-CGI.pm [...] rt.cpan.org |
From: | "Callum D. Campbell" <callum [...] iomart.net> |
Hi.
While trying to debug one of my own scripts I came across what I believe
to be a small typo in CGI::Carp v3.51.
Line 551 prints a literal '$@' rather than expanding it:
548: eval {
549: &$CUSTOM_MSG($msg); # nicer to perl 5.003 users
550: };
551: if ($@) { print STDERR q(error while executing the error
handler: $@); }
The modification below has fixed my local copy:
551: if ($@) { print STDERR qq(error while executing the error
handler: $@); }
HTH
Regards,
Callum.
--
Callum D. Campbell
Senior Systems Administrator
Iomart Group PLC
Tel: +44 (0) 141 931 6400
Fax: +44 (0) 141 931 6401
Web: http://www.iomart.com/
please don't print this e-mail unless you really need to
************** Legal Disclaimer **************
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential material. If you
have received this in error, please contact the sender immediately and
delete the material from any computer. It is expressly declared that
this email does not constitute or form part of a contract or unilateral
obligation. iomart Group PLC. Reg No: SC204560. Reg Office: Lister
Pavilion, Kelvin Campus, West of Scotland Science Park, Glasgow G20 0SP
***********************************************************************
Show quoted text
___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/