Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-ViewCode CPAN distribution.

Report information
The Basics
Id: 73317
Status: open
Priority: 0/
Queue: CGI-Application-Plugin-ViewCode

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

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



Subject: compatibility with perl 5.14
Currently it is a warning: Use of qw(...) as parentheses is deprecated at perl/site/lib/CGI/Application/Plugin/ViewCode.pm line 179. -- Alexandr Ciornii, http://chorny.net
Subject: warning with perl 5.14 / syntax error with perl 5.18
On Fri Dec 16 14:56:58 2011, CHORNY wrote: Show quoted text
> Currently it is a warning: Use of qw(...) as parentheses is deprecated > at perl/site/lib/CGI/Application/Plugin/ViewCode.pm line 179. >
This is now a fatal syntax error with perl 5.18: syntax error at /build/dom-libcgi-application-plugin-viewcode-perl_1.02-1-i386-cwEiSw/libcgi-application-plugin-viewcode-perl-1.02/blib/lib/CGI/Application/Plugin/ViewCode.pm line 179, near "$opt qw(highlight line_no pod)"
From: ppisar [...] redhat.com
Dne Pá 16.pro.2011 09:56:58, CHORNY napsal(a): Show quoted text
> Currently it is a warning: Use of qw(...) as parentheses is deprecated > at perl/site/lib/CGI/Application/Plugin/ViewCode.pm line 179. >
Fix is attached. -- Petr
Subject: CGI-Application-Plugin-ViewCode-1.02-qw-does-not-produce-parentheses-anymore.patch
From fcb9896094b4cc4b35789a2c25b8a5554c9ba20e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> Date: Tue, 23 Jul 2013 09:12:11 +0200 Subject: [PATCH] qw does not produce parentheses anymore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit <https://rt.cpan.org/Public/Bug/Display.html?id=73317> Signed-off-by: Petr Písař <ppisar@redhat.com> --- lib/CGI/Application/Plugin/ViewCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CGI/Application/Plugin/ViewCode.pm b/lib/CGI/Application/Plugin/ViewCode.pm index 4bc8c04..adc4075 100644 --- a/lib/CGI/Application/Plugin/ViewCode.pm +++ b/lib/CGI/Application/Plugin/ViewCode.pm @@ -176,7 +176,7 @@ sub _view_code { my $query = $self->query; my %options; - foreach my $opt qw(highlight line_no pod) { + foreach my $opt (qw(highlight line_no pod)) { if( defined $query->param($opt) ) { $options{$opt} = $query->param($opt); } else { -- 1.8.1.4
From: dsteinbrunner [...] pobox.com
On Tue Jul 23 03:30:36 2013, ppisar wrote: Show quoted text
> Fix is attached.
Pull request with patch here: https://github.com/mpeters/cgi--application--plugin--viewcode/pull/1