Bug 2505 - remove unnecessary -w and replace with use warnings;
authorDonovan Jones <donovan@catalyst.net.nz>
Wed, 24 Feb 2010 00:33:02 +0000 (13:33 +1300)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 7 Apr 2010 17:27:07 +0000 (13:27 -0400)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>

15 files changed:
installer/externalmodules.pl
misc/cronjobs/advance_notices.pl
misc/cronjobs/cleanup_database.pl
misc/cronjobs/create_koc_db.pl
misc/cronjobs/longoverdue.pl
misc/cronjobs/overdue_notices.pl
misc/cronjobs/process_message_queue.pl
misc/cronjobs/runreport.pl
misc/cronjobs/serialsUpdate.pl
misc/cronjobs/stats/monthly_circulation_statistics.pl
misc/cronjobs/stats/monthly_new_items_statistics.pl
misc/cronjobs/stats/monthly_new_patron_statistics.pl
misc/maintenance/fix_accountlines_date.pl
misc/perlmodule_rm.pl
misc/spellcheck_suggest/make_spellcheck_suggest.pl

index 4be9965..42eb4b7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
 # This Script can be used to provide a list of ALL external modules ***used*** (uncommented) in Koha.
 # It provides you not only the list of modules BUT ALSO the files that uses those modules.
@@ -6,6 +6,7 @@
 
 
 use strict;
+use warnings;
 use C4::Context;
 my $dir=C4::Context->config('intranetdir');
 qx(grep -r "^ *use" $dir | grep -v "C4\|strict\|vars" >/tmp/modulesKoha.log);
index 59a5134..46dc3f8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
 # Copyright 2008 LibLime
 #
index f583ef4..20481f5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
 # Copyright 2009 PTFS, Inc.
 #
index a38e764..ccc4a5b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
 # 2008 Kyle Hall <kyle.m.hall@gmail.com>
 
index 5560c94..cd0cbd6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 #-----------------------------------
 # Copyright 2008 LibLime
 #
index d447539..04a5a0f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
 # Copyright 2008 Liblime
 #
index 0321082..4ff29a4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
 # Copyright 2008 LibLime
 #
index 9e011e6..bb91b15 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 #
 # Copyright 2008 Liblime
 #
index 67c94b6..1de5a48 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 
 # Copyright 2008 SARL Biblibre
 #
index 57d273b..1d8ab9f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 #-----------------------------------
 # Script Name: circstats.pl
 # Script Version: 1.0
@@ -30,6 +30,7 @@
 # Suite 330, Boston, MA  02111-1307 USA
 
 # use strict;
+use warnings;
 
 # UNCOMMENT the following lines if running from a command line
 # print "THIS SCRIPT produces a comma-separated values file of circulation statistics for a given month and year.\n\nDo you wish to continue? (y/n) ";
index 746cbb8..d5df701 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 #-----------------------------------
 # Script Name: addstats.pl
 # Script Version: 1.0
@@ -29,6 +29,8 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
+use warnings;
+
 # UNCOMMENT the following lines if running from a command line
 # print "THIS SCRIPT produces a comma-separated values file of circulation statistics for a given month and year.\n\nDo you wish to continue? (y/n) ";
 # chomp($_ = <STDIN>);
index 7b5cbdf..2ef2a14 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 #-----------------------------------
 # Script Name: borrstats.pl
 # Script Version: 1.0
@@ -30,6 +30,7 @@
 # Suite 330, Boston, MA  02111-1307 USA
 
 # use strict;
+use warnings;
 
 # UNCOMMENT the following lines if running from a command line
 # print "THIS SCRIPT produces a comma-separated values file of circulation statistics for a given month and year.\n\nDo you wish to continue? (y/n) ";
index de7cfae..94a33cd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 #
 # Copyright (C) 2008 LibLime
 #
@@ -18,6 +18,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+use warnings;
 BEGIN {
     # find Koha's Perl modules
     # test carefully before changing this
index 82e34c6..4dc3b64 100755 (executable)
@@ -1,5 +1,8 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
+
 # Remove a perl module
+
+use warnings;
 use ExtUtils::Packlist;
 use ExtUtils::Installed;
 
index 097e792..1b81a2b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 ## This Script creates a Koha suggest and spellcheck database
 ## for those features as visible on LibLime's opac: opac.liblime.com
 ## It also contains the needed specs for creating a table of
@@ -14,6 +14,8 @@
 ## TODO: add suggest features, merge the two of them?
 ## There are a few configurable variables.  
 
+use warnings;
+
 ## CONFIGURABLE VARIABLES ####################
 ##
  # These are the tags that have meaningful data