From: Francois Gouget Subject: winetest: Consistently use strict and warnings in the main CGI scripts. (try2) Message-Id: Date: Wed, 23 Jul 2014 09:09:05 +0200 (CEST) --- Alexandre Julliard wrote: > Any reason for adding this? I thought you wanted to remove them... winetest.cgi did not have warnings enabled at all initially so presumably I first added the -w option and then switched to 'use warnings' but forgot to remove the option. Thanks for spotting this. winetest/site | 3 +++ winetest/winetest.cgi | 1 + 2 files changed, 4 insertions(+) diff --git a/winetest/site b/winetest/site index f7996a6..a942491 100755 --- a/winetest/site +++ b/winetest/site @@ -5,6 +5,9 @@ # by Jeremy Newman # +use strict; +use warnings; + # load CGI object use CGI qw(:standard); my $q = new CGI; diff --git a/winetest/winetest.cgi b/winetest/winetest.cgi index 8c72e02..2cc1190 100755 --- a/winetest/winetest.cgi +++ b/winetest/winetest.cgi @@ -17,6 +17,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA use strict; +use warnings; use vars qw/$queuedir $maxfilesize/; BEGIN { -- 2.0.1