===http.conf=== LoadModule perl_module modules/mod_perl.so PerlRequire "/usr/local/perlmods/startfile.pl"===startfile.pl=== use Compress::Zlib; #!/usr/bin/perl use Compress::Zlib; ..... print Compress::Zlib::memGzip($htmlstr); or #!/usr/bin/perl ... print Compress::Zlib::memGzip($htmlstr);
You should use #1. Every PERL module regardless of mod_perl should use what it uses.