use warnings in all modules
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 29 May 2008 20:27:33 +0000 (20:27 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 31 May 2008 19:47:25 +0000 (19:47 +0000)
Changes
lib/PLP.pm
lib/PLP/Backend/Apache.pm
lib/PLP/Backend/CGI.pm
lib/PLP/Backend/FastCGI.pm
lib/PLP/Fields.pm
lib/PLP/Functions.pm
lib/PLP/Tie/Delay.pm
lib/PLP/Tie/Headers.pm
lib/PLP/Tie/Print.pm

diff --git a/Changes b/Changes
index 258d9b2f0a403c59fda694307e5f3dfe7699dfb5..f02aa3270260960387679da7d417b3522541a812 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,4 @@
+- All modules use warnings
 - Fix META.yml syntax
 
 3.20 - May 29, 2008:
index f1ad4f8b44d1e4b2d52fbdd3721c7cb5d21742dd..42866dc20f85d110662693e0c203a55faae94615 100644 (file)
@@ -12,6 +12,7 @@ use File::Basename ();
 use File::Spec;
 
 use strict;
+use warnings;
 
 our $VERSION = '3.20';
 
index 62caadcb1e2b5debb3af827a9639667db749c16e..6964b56412ca45efb56c8954bb00d76e8458ec3d 100644 (file)
@@ -1,6 +1,7 @@
 package PLP::Backend::Apache;
 
 use strict;
+use warnings;
 
 our $VERSION = '1.00';
 
index 1e8def9abb09a5a394ceafdac5f99da29fb9fa7d..10b9b45618b2d1bc2dc48f90ca17266d45acbf0d 100644 (file)
@@ -1,6 +1,7 @@
 package PLP::Backend::CGI;
 
 use strict;
+use warnings;
 
 our $VERSION = '1.02';
 
index 4f14863ee9bcb80b64ba1ae5e17c82b1559c8805..92dda745a6463cacbf28fa1d19ae913237fa2042 100644 (file)
@@ -1,6 +1,7 @@
 package PLP::Backend::FastCGI;
 
 use strict;
+use warnings;
 
 use PLP::Backend::CGI ();
 use FCGI;
index 7f07c4e914225e8f006e86a02db99b7391ee7471..01f3baf964ee41661c12f4dbd6bd4ae05fc0a48d 100644 (file)
@@ -1,6 +1,7 @@
 package PLP::Fields;
 
 use strict;
+use warnings;
 
 # Has only one function: doit(), which ties the hashes %get, %post, %fields
 # and %header in PLP::Script. Also generates %cookie immediately.
index 28815cd2e2ba2559b22a77ee49596e808101ff14..18318ad7b0bacbdf643f0037fee5f202abb84ea2 100644 (file)
@@ -1,8 +1,10 @@
 package PLP::Functions;
 
-use base 'Exporter';
-use Fcntl qw(:flock);
 use strict;
+use warnings;
+
+use Exporter qw(import);
+use Fcntl qw(:flock);
 
 our @EXPORT = qw/Entity DecodeURI EncodeURI Include include PLP_END
                  AddCookie ReadFile WriteFile AutoURL Counter exit/;
index bf7a7a71cc4a8e216a7807fe6013b99106fc955e..8be53afae7257045dec7189b853f808ad03cdfe1 100644 (file)
@@ -2,6 +2,7 @@ package PLP::Tie::Delay;
 
 use strict;
 no strict 'refs';
+use warnings;
 
 =head1 PLP::Tie::Delay
 
index df41fbef2c105ec9c049764fd2735c20ec1c4b04..ef124912f886e4681e1873a1e09fdb5ab51f342e 100644 (file)
@@ -1,6 +1,7 @@
 package PLP::Tie::Headers;
 
 use strict;
+use warnings;
 use Carp;
 
 =head1 PLP::Tie::Headers
index ef537a03a10a6a6bc7739fd87bfc4981d478340d..a2d22dd25c2a1c189c2b890576529ab60e5da437 100644 (file)
@@ -1,6 +1,7 @@
 package PLP::Tie::Print;
 
 use strict;
+use warnings;
 
 =head1 PLP::Tie::Print