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

How can I create a binary image ("exe") from a Perl file?

Replies are listed 'Best First'.
Re: Create binary image
by kennethk (Abbot) on Mar 17, 2009 at 13:44 UTC
    There is pay software from ActiveState that will allow you to do that. However, recovering the source is a pretty trivial task and the only advantage such a thing gains you is the ability to execute your code independent of an interpreter. See also pdk.
      And PAR, PerlBin and Cava Packager.

      Note that what these utilities do is wrap the script and the interpreter into a single executable, and not actually compile it.

Re: Create binary image
by Anonymous Monk on Mar 17, 2009 at 13:37 UTC

    You can't — perlcc (the Perl compiler) is dead. But you might want to try PAR.

Re: Create binary image
by targetsmart (Curate) on Mar 17, 2009 at 13:35 UTC
    Why do you want to do so?.
    Why can't you use actual perl script?.
    Asked the above questions after thinking about scalability and maintainability in mind

    Vivek
    -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
Re: Create binary image
by Anonymous Monk on Mar 17, 2009 at 13:37 UTC