I develop my perl scripts on OSX but I need to be able to generate executables for both OSX as well as windows. They won't need any graphical stuff, just a double clickable file that will do its stuff.
Incidentally, you'll have to make sure that you don't use any not - installed - by - default modules in your scripts. If, for instance, you use XML::Parser, installed via CPAN, then the .command trick for OS X won't work on machines without XML::Parser. PAR, on Windows, will properly suck in any external requirements, but this presumes that you've got a Win32 machine with a working script (sorry - forget to mention this in the previous message; you can't generate a Win32 .exe from OS X via PAR).
If you ARE using external third party modules on OS X, you'd have to ship them with the script itself, which gets even more complicated if you're using compiled XS (like XML::Parser; you'd have to ship different versions of your script with compiled modules for different OS X majors).
You can see an example of a fully distributed Perl app with my AmphetaDesk at http://www.disobey.com/amphetadesk/. It's rather old and hasn't been updated in a few years, so note that I used perl2exe to build the Win32 .exe instead of PAR (though, I have got a PAR-built version on a dev server around here somewhere). I could go on and on about the design itself (like .exe I'm shipping is a mere loader only, and all the logic code itself is still raw text, Pure Perl, and modifiable as normal) but that's getting away from "simple script" and more toward " complex applications", probably outside your needs.
-- Morbus Iff ( you are nothing without your robot car, NOTHING! ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ O'Reilly Author, Weblog, Cook: http://www.oreillynet.com/pub/au/779 icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
