use warnings in all modules
[perl/plp/.git] / lib / PLP.pm
index 03c4acbe38a48d40b5b4eda076ea591a19951081..42866dc20f85d110662693e0c203a55faae94615 100644 (file)
@@ -12,8 +12,9 @@ use File::Basename ();
 use File::Spec;
 
 use strict;
+use warnings;
 
-our $VERSION = '3.19';
+our $VERSION = '3.20';
 
 # Subs in this package:
 #  _default_error($plain, $html)    Default error handler
@@ -260,15 +261,11 @@ PLP - Perl in HTML pages
 
 F<lighttpd.conf> configuration using L<mod_fastcgi|PLP::Backend::FastCGI>:
 
-    server.modules = (
-        "mod_fastcgi",
-    )
-    fastcgi.server = (
-        ".plp" => ((
-                    "bin-path" => "/usr/bin/perl -MPLP::Backend::FastCGI",
-                    "socket" => "/tmp/fcgi-plp.socket",
-                  )),
-    )
+    server.modules += ("mod_fastcgi")
+    fastcgi.server += (".plp" => ((
+        "bin-path" => "/usr/bin/perl -MPLP::Backend::FastCGI",
+        "socket"   => "/tmp/fcgi-plp.socket",
+    )))
 
 =head2 Apache installation
 
@@ -364,14 +361,18 @@ These are described in L<PLP::Functions>.
 
 =over 22
 
-=item $ENV{PLP_NAME}
+=item $ENV{SCRIPT_NAME}
 
 The URI of the PLP document, without the query string. (Example: C</foo.plp>)
 
-=item $ENV{PLP_FILENAME}
+Used to be renamed to C<$ENV{PLP_NAME}>, which is still provided but deprecated.
+
+=item $ENV{SCRIPT_FILENAME}
 
 The filename of the PLP document. (Example: C</var/www/index.plp>)
 
+C<$ENV{PLP_SCRIPT}> also still provided but deprecated.
+
 =item $PLP::VERSION
 
 The version of PLP.