On 4 Feb 2005 at 11:45, Augusto Flavio wrote:

> Good morning,
> 
> 
> 
> Are you saying to me that i can't compile a module
> (extension .pm)? I'm look a method to compile my
> module(.pm). Can i do this with the pp? 
> 
> Have some way to obfuscate the code of a module?
> 

After re-reading my own documentation, I remembered what I should have said 
about using 
PAR to package just modules for use elsewhere.

Your module.pm will need to be installed in the Perl lib or site\lib directory. 
Create 
a small script "include.pl" that says:

        use module;

then run:

        pp -p -o module.par include.pl

then, in your cgi script:

        use PAR qw( module.par );

The resulting module.par file is really just a minor variation on a zip file. 
My 
comments on obfuscation still apply.

Alan Stewart

Reply via email to