Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 83360
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: callum [...] iomart.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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/
Subject: Re: [rt.cpan.org #83360] errors setting custom message not displayed by CGI::Carp v3.51
Date: Thu, 21 Feb 2013 09:45:37 -0500
To: bug-cgi.pm [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
I agree this looks like a bug. Mark
This issue has been copied to: https://github.com/leejo/CGI.pm/issues/113 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
commit 940cd3a992ed440e9e16d187ac056bb97e51f856 Author: Lee Johnson <lee@givengain.ch> Date: Sat Sep 20 16:11:14 2014 +0100 resolve #113 [rt.cpan.org #83360] - fix typo in q( should be qq( so $@ is correctly interpolated in the error message displayed on STDERR Changes | 1 + lib/CGI/Carp.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)