views:

391

answers:

1

What would be the easiest way to compile a simple perl script to an executable under windows with Strawberry Perl (as I understand it's possible and free).

In the past I've used ActiveState compiler and perl2exe and was simple enough ... however, now after a few computer changes and OS updates I've lost the licenses and I'd like to find a better/permanent solution.

Thanks in advance!

+6  A: 

Install PAR::Packer from CPAN (it is free) and use pp utility.

Alexandr Ciornii
Instructions here: http://n3ncy.com/PERL/ and here: http://stackoverflow.com/questions/1237286/how-can-i-compile-my-perl-script-so-it-can-be-executed-on-systems-without-perl-in/1241379#1241379
Notitze
Note: PAR::Packer/pp comes with a manual: http://search.cpan.org/perldoc?pp For a fairly in-depth overview of what you can do with PAR, have a look at my talk from YAPC::EU 2008 http://steffen-mueller.net/talks/appdeployment/
tsee