Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: how to reun...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 11022 of 11401
Post > Topic >>

Re: how to reun perl script on other pc without having to install perl

by chas.owens@[EMAIL PROTECTED] (Chas. Owens) May 4, 2008 at 01:10 AM

On Sun, May 4, 2008 at 12:58 AM,  <itshardtogetone@[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 im****tant skill a programmer can have is the ability to read.
 




 7 Posts in Topic:
how to reun perl script on other pc without having to install pe
itshardtogetone@[EMAIL PR  2008-05-04 12:58:32 
Re: how to reun perl script on other pc without having to instal
peng.kyo@[EMAIL PROTECTED  2008-05-04 13:09:52 
Re: how to reun perl script on other pc without having to instal
chas.owens@[EMAIL PROTECT  2008-05-04 01:13:30 
Re: how to reun perl script on other pc without having to instal
chas.owens@[EMAIL PROTECT  2008-05-04 01:10:18 
Re: how to reun perl script on other pc without having to instal
noreply@[EMAIL PROTECTED]  2008-05-04 07:28:28 
Re: how to reun perl script on other pc without having to instal
davek@[EMAIL PROTECTED]   2008-05-05 15:56:10 
Re: how to reun perl script on other pc without having to instal
Jenda@[EMAIL PROTECTED]   2008-05-06 01:39:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 7:07:00 CDT 2008.