If you want to share your cool script with your non scripting buddies, you can convince them to learn perl and install modules, etc. Or you can remote into their machine and do a bunch of work getting stuff working on their machine, or you can use PAR and send them a compiled script.
Here are my notes on getting PAR to work…
Download and install these modules:
- http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/Test-Pod-1.48.tar.gz
- http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/Module-ScanDeps-1.10.tar.gz
- http://search.cpan.org/CPAN/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-1.11.tar.gz
- http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/PAR-Packer-1.014.tar.gz
- http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/PAR-1.007.tar.gz
Install each module Above:
- extract to a folder
- move it to C:\strawberry\perl\lib\
- cd C:\strawberry\perl\lib\somefolder
- perl makefile.pl
- dmake
- dmake test
- dmake install
Create the Compiled Binary:
C:\> pp --gui --icon Icon.ico -o sample.exe sample.pl
You can view the full PAR documentation here:
http://search.cpan.org/~autrijus/PAR-0.85/script/pp You can also view the documentation by typing the following at a command prompt:
perldoc pp