X-Git-Url: http://git.shiar.net/gitweb.cgi/perl/plp/.git/blobdiff_plain/58286f44f06df2a424e09f50312616b96832b30d..0dbf6bc1fe5cd28c532994d13836e9509fcbe194:/PLP/Apache.pm?ds=sidebyside diff --git a/PLP/Apache.pm b/PLP/Apache.pm index c388095..bc78881 100644 --- a/PLP/Apache.pm +++ b/PLP/Apache.pm @@ -26,6 +26,7 @@ sub init { our $r = shift; $PLP::print = 'PLP::Apache::print'; + $PLP::read = \&read; $ENV{PLP_FILENAME} = my $filename = $r->filename; @@ -49,6 +50,12 @@ sub init { return 0; # OK } +sub read ($) { + my ($bytes) = @_; + $r->read(my $data, $bytes); + return $data; +} + # FAST printing under mod_perl sub print { return unless grep length, @_;