#!/usr/bin/perl
use Compress::Zlib;
.
print Compress::Zlib::memGzip($htmlstr);
This one is best practise - and is a requirement when you want to import
functions into your own scripts name space.
Carl
===http.conf===
LoadModule perl_module modules/mod_perl.soPerlRequire
"/usr/local/perlmods/startfile.pl"
===startfile.pl===
use Compress::Zlib;
The two type of code will work.But what is the proper code?
#!/usr/bin/perl
use Compress::Zlib;
.
print Compress::Zlib::memGzip($htmlstr);
or
===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);