lorn has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks!

I have a problem with mod_perl + perlcc, i have a 2 scripts, this works fine, but if i compile

perlcc -o script.pl -B script_s.pl

the script dont work more, and show this erros on apache error log

Mon Mar 13 13:27:57 2006 error Missing right curly or square bracket at /usr/local/httpd-2.0.55/htdocs/busca/buscador.pl line 3, at end of line\nsyntax error at /usr/local/httpd-2.0.55/htdocs/busca/buscador.pl line 3, at EOF\n

the problem is not line 3, ( i try del and recompile and the error continue )

anyway, they already had this problem??

thanks, and sorry for the bad english :P

Lorn

Brazil-PM::Sao_Paulo-PM

-lornlab.no-ip.com-

-www.slackwarezine.com.br-

Replies are listed 'Best First'.
Re: mod_perl + perlcc error
by wazoox (Prior) on Mar 13, 2006 at 17:15 UTC
    Well, there's a simple rule : Don't use perlcc. It's broken. By the way, using perlcc with mod_perl simply wouldn't make sense at all. mod_perl runs only (well mostly at least) specially tailored perl scripts.

      i need this, because I do not want my client, read the source of my program

      Lorn

      Brazil-PM::Sao_Paulo-PM

      -lornlab.no-ip.com-

      -www.slackwarezine.com.br-

        Excuse me but this is silly. If you give your client the program, (s)he may copy it, give it to friends, save it on CDs. There is nothing you can do to prevent this. Hiding the source won't help you.

        You'll need to obfuscate the source of your program then. Perlcc doesn't work and won't help you.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      i need this, because I do not want my client, read the source of my program

      Lorn

      Brazil-PM::Sao_Paulo-PM

      -lornlab.no-ip.com-

      -www.slackwarezine.com.br-

Re: mod_perl + perlcc error
by rafl (Friar) on Mar 13, 2006 at 17:18 UTC

    Hello,

    maybe you should try to use PAR. It's pretty much like perlcc, except not totally broken.

    -Flo