Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Self contained Perl executables

by Corion (Patriarch)
on Aug 15, 2018 at 08:26 UTC ( [id://1220356]=note: print w/replies, xml ) Need Help??


in reply to Self contained Perl executables

I think the current options are roughly as follows:

  • Par::Packer - this packages your current Perl executable together with your script and all required modules and creates a single (large) binary. Ideally, you can just drop this binary somewhere and run it, but the drawback is that PAR still unpacks the files to a temp directory and runs them there. Depending on the target system and file creation permissions, this may be problematic.
  • App::Staticperl - this compiles a custom Perl with all C and Perl dependencies included, which will then run your script from the same file. The drawback is that this is a shell script and needs a Linuxish environment to work.
  • App::FatPacker - this packages your Perl script and all required (pure Perl) modules into one file that you can just use with whatever Perl is on the remote machine. Ideally, you can just drop this file somewhere and run it, but the drawback is that Perl and Perl modules needing C compilation will need to be installed on the target machine already.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1220356]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2026-05-12 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.