in reply to using a Perl script in Windows without installing perl

You could use pp to package your script along with all dependant modules into an exceutable which will run without having to install Perl on the target system. Note that you need to create the Windows executable on a system running Windows with Perl, pp and all of the other modules/files your script needs. Each time you finish an update cycle on Linux you can repackage your application. If you have a release management system you may be able to automate this whole process quite easily.

Please note that the resultant exe is essentially a zip file containing your code, the modules in question and whatever else you've packaged. Read PAR::FAQ and http://par.perl.org.

  • Comment on Re: using a Perl script in Windows without installing perl

Replies are listed 'Best First'.
Re^2: using a Perl script in Windows without installing perl
by evgen-i (Novice) on Dec 17, 2012 at 15:59 UTC
    Thanks much, it seemed to work out-of-the-box for a simple test script.

    However, there is one problem: I am used to

    #!/usr/bin/perl -s

    This means that options specified as -a -b=1 are directly used in the script as $a and $b. After packaging with pp, though, the options are not recognized anymore. Do you know if there is a solution which can still keep these options?