From: Thomas Hochstein Date: Mon, 2 Sep 2013 09:15:12 +0000 (+0200) Subject: Change handling of warnings. X-Git-Tag: 0.01~1^2~5^2 X-Git-Url: https://code.th-h.de/?p=usenet%2Fnewsstats.git;a=commitdiff_plain;h=3f817eb4289da08fff2aab19db97a82d977b8e3e;hp=-c Change handling of warnings. Replace 'perl -W' by 'use warnings;'. The latter is preferred, and '-W' (instead of '-w') was causing problems with warnings in DB::mysql::GetInfo.pm. Signed-off-by: Thomas Hochstein --- 3f817eb4289da08fff2aab19db97a82d977b8e3e diff --git a/feedlog.pl b/feedlog.pl index 636de83..80dbbe0 100755 --- a/feedlog.pl +++ b/feedlog.pl @@ -1,4 +1,4 @@ -#! /usr/bin/perl -W +#! /usr/bin/perl # # feedlog.pl # @@ -18,6 +18,7 @@ BEGIN { push(@INC, dirname($0)); } use strict; +use warnings; use NewsStats; diff --git a/gatherstats.pl b/gatherstats.pl index 4c539f1..160c115 100755 --- a/gatherstats.pl +++ b/gatherstats.pl @@ -1,4 +1,4 @@ -#! /usr/bin/perl -W +#! /usr/bin/perl # # gatherstats.pl # @@ -18,6 +18,7 @@ BEGIN { push(@INC, dirname($0)); } use strict; +use warnings; use NewsStats qw(:DEFAULT :TimePeriods ListNewsgroups ParseHierarchies ReadGroupList); diff --git a/groupstats.pl b/groupstats.pl index 14d19c6..f0e4278 100755 --- a/groupstats.pl +++ b/groupstats.pl @@ -1,4 +1,4 @@ -#! /usr/bin/perl -W +#! /usr/bin/perl # # groupstats.pl # @@ -18,6 +18,7 @@ BEGIN { push(@INC, dirname($0)); } use strict; +use warnings; use NewsStats qw(:DEFAULT :TimePeriods :Output :SQLHelper ReadGroupList); diff --git a/install/install.pl b/install/install.pl index 4069bf5..59920fa 100755 --- a/install/install.pl +++ b/install/install.pl @@ -1,4 +1,4 @@ -#! /usr/bin/perl -W +#! /usr/bin/perl # # install.pl # @@ -18,6 +18,7 @@ BEGIN { push(@INC, dirname($0).'/..'); } use strict; +use warnings; use NewsStats qw(:DEFAULT);