From: Jamie C. <jca...@we...> - 2003-02-13 23:35:13
|
paul.reilly wrote: > Hi Folks, > > I have a problem regarding Webmin modules that has been compiled using > perlcc. > I have written a module that consists of about 15 .cgi and 4 .pl (lib) > files. > If I compile the .cgi files and try to use them via Webmin, they work > perfectly. > However, if I compile the .pl files they fail. > Typical error: > Missing Content-Type Header : Unrecognized character \x7F at > ./library.pl line 1. > Compilation failed in require at index.cgi line 6. > > Has anyone else encountered this problem ?? > Any help would be appreciated. I can see why a problem would happen - the .cgi file will try to 'require' the .pl file, expecting it to be normal Perl source. However if it is actually a compiled binary, the require will of course fail! You should only compile the .cgi files which are run directly, instead of any .pl files that get called indirectly from a .cgi program. - Jamie |