
Evangelo.Prodromou at siemensrolm
May 16, 1996, 5:09 PM
Post #4 of 4
(572 views)
Permalink
|
Hi, Did you try using the File/Associate... menu item in File Manager to associate "*.pl" files with perl? You can tell that the ".pl" extension is associated by double-clicking on your script in the File Manager. It should run, if it's associated correctly. ~E. ---------- From: sliaw To: twoinc Cc: Perl-Win32 Subject: Perl 5 and MS Internet Server on NT Date: Thursday, May 16, 1996 3:28PM Priority: Low Well, I am reading the "Introduction to CGI/PERL," and I am trying out a sample perl file illustrated in the book: print "Content-type: text/html\n\n"; print "<html>\n; print "<head>\n; print "<title>Hello world with Perl</title>\n; print "</head>\n"; print "<body>\n"; print "<h1>Hello world with Perl</h1>\n"; Print "<P>Howdy, Worl!</p>\n"; print "</body>\n"; print "</html>\n"; I left out "#!/usr/local/bin/perl" from the original file because I didn't think it apply in my case. Besides, when I installed Perl 5, I said yes to modifying the paths information. Although it says to keep all the scripts files in "c:\inetsrv\scripts" directory, I named it "test.html" and kept it in "C:\inetsrv\wwwroot". I figured that, if I named it with .pl extension and keep it in the \scripts directory, I would have to create another html file in the \wwwroot directory to reference the .pl file in the \scripts. I DON'T KNOW HOW TO DO THAT. So when I "browse" this test.html file it display exactcally what is in the file with all the "print" and "\n". When I rename the file with a .pl and kept it in the \wwwroot directory, and browse it, it wants me to save the file. Following Richard's suggestion I tried adding .pl support to "Register File Type" using Regedit (using *.pl for identifier, and command is perl %1).This didn't help me. Thanks Sam
|