Skip to content

Commit

Permalink
silence CGI.pm warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Oct 23, 2014
1 parent eb07149 commit 4b9480b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion t/Plack-Middleware/cgi-bin/hello.cgi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
use CGI;
my $q = CGI->new;
print $q->header, "Hello ", $q->param('name'), " counter=", ++$COUNTER;
print $q->header, "Hello ", scalar $q->param('name'), " counter=", ++$COUNTER;
2 changes: 1 addition & 1 deletion t/Plack-Middleware/cgi-bin/hello2.cgi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
use CGI;
my $q = CGI->new;
print $q->header, "Hello ", $q->param('name'), " counter=", ++$COUNTER;
print $q->header, "Hello ", scalar $q->param('name'), " counter=", ++$COUNTER;
2 changes: 1 addition & 1 deletion t/Plack-Middleware/wrapcgi_exec.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plan skip_all => $^O if $^O eq "MSWin32";
#!$^X
use CGI;
my \$q = CGI->new;
print \$q->header, "Hello ", \$q->param('name'), " counter=", ++\$COUNTER;
print \$q->header, "Hello ", scalar \$q->param('name'), " counter=", ++\$COUNTER;
...
close $tmp;

Expand Down

0 comments on commit 4b9480b

Please sign in to comment.