Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Re: .pl to .exe

by pm5 (Acolyte)
on Sep 03, 2003 at 13:47 UTC ( [id://288635]=note: print w/replies, xml ) Need Help??

in reply to .pl to .exe

There is also perlcc, and PAR on CPAN, which contains a program "pp". Both of which can make standalone windows or linux executables. I've never tried any of them, though.

Replies are listed 'Best First'.
Re: Re: .pl to .exe
by flounder99 (Friar) on Sep 03, 2003 at 15:52 UTC
    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(' +rs/id/A/AU/AUTRIJUS/PAR-0.74')"
    you then can create an executable by doing this:
    C:\>pp -o myscript.exe
    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.



Re: Re: .pl to .exe
by Arbogast (Monk) on Sep 03, 2003 at 13:57 UTC
    On Linux, for some things, I call the Perl Program from a Bash Script. Then I turn the Bash Script into an executable icon in KDE, Howto is in the KDE menus somewhere. Then people can use the program without knowing anything about how your Linux comp works. That gives .exe type functionality.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-07-20 04:04 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.