Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: creating utility in perl

by dasgar (Curate)
on Jul 04, 2013 at 06:30 UTC ( #1042340=note: print w/ replies, xml ) Need Help??

in reply to Re^2: creating utility in perl
in thread creating utility in perl

The pp utility in PAR::Packer will bundle your code, the modules needed by your code and the Perl interpreter into a stand-alone executable. That means the executable contains everything needed to run the script. For example, let's say that you've got two systems that have the same OS, but Perl is only installed on system A. So you create a Perl script on system A and use pp to create an executable. You can now take that executable to system B and it will be able run the executable just fine. System B could have no Perl installed, different version of Perl installed, missing required modules, etc. and none of that matters because it is using the contents of the executable.

There are some caveats and exceptions to what I described above, but what I described is accurate. Try installing PAR::Packer and read up on the documentation of the pp utility. It will do exactly what you're wanting to do.

Comment on Re^3: creating utility in perl

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2015-11-26 23:36 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (710 votes), past polls