in reply to Compiling Perl

Compiling a perl program to C or bytecode does not work well. I suggest you not bother. Please do follow up with what your actual goal here is and why you thought that compiling to C or bytecode was a good idea.

If your goal is to end up with a packaged executable for running a program, see PAR - the current best practice. If your goal is to obscure your program's source code so others cannot see it, see B::Deobfuscate and Here is a commercial obfuscator.

Replies are listed 'Best First'.
Re^2: Compiling Perl
by Anonymous Monk on Jun 16, 2004 at 22:39 UTC
    The Intent of this is because I am writing a freeware version of a script to release on the net, and I want to make it tougher for people to remove the copyright notice
Re^2: Compiling Perl
by Anonymous Monk on Jun 16, 2004 at 22:55 UTC
    Are there any linux equiv's of PAR? or pp. I dont want to run windows *shudders* and pp seems to only make .exe files

      Read the documentation closer. Nearly all of the examples are performed from the context of some sort of unix shell. If you intend to distribute your script using this you'll need to provide separate versions for each of the odd dozen current different builds of libc and glibc and then each of the operating systems you'd like to allow your script to be run on...

      This is why this stuff typically is distributed as source - because it is really, really difficult to get binary executables that work on computers that aren't identical to yours.