File: qw-as-parens.patch

package info (click to toggle)
libcgi-application-plugin-viewcode-perl 1.02-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 312 kB
  • ctags: 189
  • sloc: perl: 1,788; sh: 52; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: using qw() as parentheses is a fatal error now
Origin: vendor
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=73317
Bug-Debian: http://bugs.debian.org/709681
Forwarded: not needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2013-05-25

--- a/lib/CGI/Application/Plugin/ViewCode.pm
+++ b/lib/CGI/Application/Plugin/ViewCode.pm
@@ -176,7 +176,7 @@
     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 {