Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: .pl to .exe

by flounder99 (Friar)
on Sep 03, 2003 at 15:52 UTC ( [id://288664]=note: print w/replies, xml ) Need Help??


in reply to Re: .pl to .exe
in thread .pl to .exe

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found