X-Git-Url: http://git.shiar.nl/perl/plp/.git/blobdiff_plain/7e6bbd1c2d57c1129f58d79e21943a26e931c0d3..956a50913196bbb7bb8db7d53ccd07c198cac5bc:/PLP.pm diff --git a/PLP.pm b/PLP.pm index 2df9c3b..3e5baf5 100644 --- a/PLP.pm +++ b/PLP.pm @@ -8,9 +8,9 @@ use PLP::Tie::Headers; use PLP::Tie::Delay; use PLP::Tie::Print; -#use strict; +use strict; -our $VERSION = '3.10'; +our $VERSION = '3.11'; # subs in this package: # sendheaders Send headers @@ -194,10 +194,10 @@ sub mod_perl_init { $ENV{PLP_FILENAME} = my $filename = $r->filename; unless (-f $filename) { - return Apache::Constants::NOT_FOUND; + return Apache::Constants::NOT_FOUND(); } unless (-r _) { - return Apache::Constants::FORBIDDEN; + return Apache::Constants::FORBIDDEN(); } (my $dir) = $filename =~ m!(.*)/!s; @@ -254,7 +254,8 @@ sub handler { return $ret; } start(); - return Apache::Constants::OK; + no strict 'subs'; + return Apache::Constants::OK(); } 1;