On Sun, May 4, 2008 at 12:58 AM, <[EMAIL PROTECTED]> wrote: > Hi, > What must I do to my perl script so that my friends can run my perl script > from their computer, using windows as the operating system, without having to > install perl into their system. > Technically, this conversion is it called compiling? > > Thanks
No, compiling is turning source code into object code. Perl actually compiles your code when it is run (that is why you have distinctions between compile time behavior and runtime behavior). Generally the phase where you create a binary executable is called linking (you link your object code with various libraries' object code). Unfortunately*, Perl does not have a linking phase; however, there is a way to get a single file that you can hand to a person who does not have perl that lets them run the program. You need to look at PAR::Packer**. You will need access to a machine that has Windows installed on it to build the proper PAR archive though. If you don't already have a version of Perl installed on Windows I would suggest using Strawberry Perl***, especially if you are going to use PAR::Packer (ActivePerl's**** version of PAR::Packer was broken the last time I tried to use it). * or fortunately, because things like eval are hard to do once code has been linked ** http://search.cpan.org/dist/PAR-Packer/lib/PAR/Packer.pm *** http://strawberryperl.com/ **** http://www.activestate.com/Products/activeperl/ -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/