On Fri, Nov 21, 2008 at 01:55, ashish nainwal <[EMAIL PROTECTED]> wrote:
> I am using perlcc to compile perl script

Yeah, that is a bad idea.

from http://search.cpan.org/~nwclark/perl-5.8.8/utils/perlcc.PL:

The code generated in this way is not guaranteed to work. The whole
codegen suite (perlcc included) should be considered very
experimental. Use for production purposes is strongly discouraged.

In general, there are no real benefits to "compiling" Perl code.
Unless you need to be able to distribute one file to a client who does
not have Perl installed you are better off just making the Perl script
executable and calling it a day.  If you do need to create a single
file you can hand off to a customer consider using PAR* (creates a
bundle similar to Java's JAR files) or PAR::Packer** (bundles the PAR
file up with a copy of the interpreter to create a completely
standalone executable).

* http://search.cpan.org/dist/PAR/lib/PAR.pm
** http://search.cpan.org/dist/PAR-Packer/lib/PAR/Packer.pm

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to