http://www.perlmonks.org?node_id=975825

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

OMM, monks

I know that most of you will consider it a trivial question, but I am interested is there any way to convert a perl script + Perl interpreter + a number of perl modules for example into a single exectuable binary file? Kind of making it compiled scirpt instead of interpreted? Python has python2exe I think. I`ve found a perlbin but it is not supported any more.

  • Comment on Perl script to binary file (lone stand)

Replies are listed 'Best First'.
Re: Not so trivial question
by marto (Cardinal) on Jun 12, 2012 at 14:57 UTC

      I`ve updated the topic, will also check these items you suggested.

      Thanks, I`ll try pp rather bying devkits.

        I've had success with pp on various platforms. I've never used cava or PDK. Perl2Exe is also available but it's terrible IMHO.

Re: Perl script to binary file (lone stand)
by zentara (Archbishop) on Jun 12, 2012 at 16:04 UTC

      I`ve just checked in my linux distro`s repos but no trail of this one you suggested. i`ll cehck into cpan but, if it`s something like a pay-to-use I`ll say " no "

        You misunderstand what Citrus Perl is. It is a Perl distribution, like Active State Perl, not a module. You can install it in parallel with your current Perl.

        Citrus Perl's advantage is that it has been designed and debugged to allow making stand-alone executables easy and cross-platform. It even has a GUI for doing so. The Cava packager uses Citrus Perl as its engine.


        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku ................... flash japh