X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/9b76d38ad3dc8f7135e5c2b1594e6815790808bc..52b63e9e0c0e3d3019a2751158f59cae036b6fe4:/PLP/Apache.pm diff --git a/PLP/Apache.pm b/PLP/Apache.pm index bc78881..6b28f94 100644 --- a/PLP/Apache.pm +++ b/PLP/Apache.pm @@ -21,9 +21,11 @@ BEGIN { } } +our $r; + # mod_perl initializer: returns 0 on success, Apache error code on failure sub init { - our $r = shift; + $r = shift; $PLP::print = 'PLP::Apache::print'; $PLP::read = \&read; @@ -60,7 +62,7 @@ sub read ($) { sub print { return unless grep length, @_; PLP::sendheaders() unless $PLP::sentheaders; - $PLP::Apache::r->print(@_); + $r->print(@_); } # This is the mod_perl handler.