PAR works quite well on Windows once you get it installed. I could not install it using
ppm but I was able to install it like this:
C:\>ppm install par-dist
C:\>perl -MPAR::Dist -e "install_par('http://cpan.org/modules/by-autho
+rs/id/A/AU/AUTRIJUS/PAR-0.74')"
you then can create an executable by doing this:
C:\>pp -o myscript.exe myscript.pl
I recommend you then use
upx to shrink the executable.
I have to admit I haven't used it on any horribly complex scripts but it has alway worked on the ones I have tried. It is nice because you can use the .exe file on any windows computer even if it doesn't have perl installed. (even if you can't fit them on a floppy)
Update:
Try running this:
C:\>pp -o hello.exe -e "print 'hello world!'"
C:\>hello
hello world!
you get a nice 1.36M
hello.exe which upx's down to 909k.
--
flounder
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.