freelanceprogrammers.org Forum Index » Perl
Installation Problem
Joined: 06 Jul 2004
Posts: 2
Installation Problem
Hi
I am new to PERL programming and I am having some real problem to see
my out put pf perl script in browser ...
I am using windows 2000 machine
I download perl from active perl and insatlled it in d:Perl .
OS is in C drive
I created myperl.pl containing following code and save that to D:perlin
#!/usr/bin/perl
print "It works! ";
Now I go to command prompt at d:perlin
and run my program at command prompt by perl myperl.pl
..its displays the out put ...
But I want to display that out put in browser ....What I should do ...
I have IIS from where I run my ASP files ....What I did that I created
MyPerl folder in Inetpubwwwroot and copied the above perl file
conatining only 2 lines of code there but when I browse my perl file
from there ...it does not process it and just display the whole
contents of file ...whilw when I browse ASP file ..it works properly
.... Do I need to install somw component or do I need to make some
change in directory path ..How I can make IIS to process my perl files ...
Looking foeard to hear from you people ...
Thanks in Advance
Regards
Namon
http://www.hftonline.com/forum/showthread.php?t=14781
Joined: 19 Jul 2004
Posts: 4
Installation Problem
Namon,
Writing perl code to display in a browser requires you to use CGI
routines. I suggest you get a book on Perl CGI or search the web
about it. CGI can be a little advanced for people that are new to
Perl. I would suggest you write a program that does what you want at
the command prompt, then add the code to make it a CGI so it will
display in the browser.
FYI...
Chris
--- In perl_official@yahoogroups.com, "namon20" <namon20@y...> wrote:
> Hi
>
> I am new to PERL programming and I am having some real problem to see
> my out put pf perl script in browser ...
>
> I am using windows 2000 machine
>
> I download perl from active perl and insatlled it in d:Perl .
>
> OS is in C drive
>
> I created myperl.pl containing following code and save that to
D:perlin
>
> #!/usr/bin/perl
> print "It works! ";
>
> Now I go to command prompt at d:perlin
> and run my program at command prompt by perl myperl.pl
> ..its displays the out put ...
>
> But I want to display that out put in browser ....What I should do ...
> I have IIS from where I run my ASP files ....What I did that I created
> MyPerl folder in Inetpubwwwroot and copied the above perl file
> conatining only 2 lines of code there but when I browse my perl file
> from there ...it does not process it and just display the whole
> contents of file ...whilw when I browse ASP file ..it works properly
> .... Do I need to install somw component or do I need to make some
> change in directory path ..How I can make IIS to process my perl
files ...
>
> Looking foeard to hear from you people ...
>
> Thanks in Advance
>
> Regards
>
> Namon
>
> http://www.hftonline.com/forum/showthread.php?t=14781
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







