Re: Need use modules in my code?

2005-12-21 Thread Carl Johnstone
#!/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

Need use modules in my code?

2005-12-20 Thread LUKE
===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

Re: Need use modules in my code?

2005-12-20 Thread Philip M. Gollucci
===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);