You might start by reading some of the docs that come with ActiveState.
They have some details in there about things like adding Perl to your path
and creating an association to Perl for files with a .pl extension.  This
makes things easier than having to type c:/path/to/Perl before every script
call.

> can i now run a Perl program by writing the code and calling 
> if from an html? all off line???

The above makes it sound like you want to be writing CGI scripts, I just
wanted to make sure you had a web server set up as well.  If you do and you
have a cgi directory set up properly then you can call the Perl script from
your browser by typing 'http://localhost/cgi-bin/script.pl' into the
location bar.  Note that cgi-bin might be called 'scripts' or something
else.  If you don't have a web server yet and you're running a MS windows
deviant, er.. variant I mean,  you can get their personal web server from
microsoft.com for free.  That's probably the path of least resistance though
you could also look into Apache for windows if you want something more
serious.

> 
> Will I have to change the code when I upload it to my server?
If your server is a Unix style system you will probably need to make sure
your shebang line has the right path, like you mention below.  Don't use any
modules starting with 'Win32' and you should be o.k.  Perl is pretty
portable.

> 
> do i change the #!/usr/bin/perl line in windows to reflect 
> the location of Perl on my PC?
> 
> #!c:/internet/perl/perl5  

This isn't necessary if you have the file associations set up.  I would say
use the /usr/bin/perl path so that it will work on your server and let the
file associations take care of it on windows.


Of course, I could be lying about all of this.
Peter C. 

Reply via email to