Because the webserver software isn't configured to execute the .pl
extension. It doesn't know what to do with it.
Purists would say that the .pl extension represents a Perl Library, and
for clarity, methodology, and security sake should not be executed.
-----Original Message-----
From: Tom Malone [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 12:08 AM
To: Perl List
Subject: RE: stupid question
Ok -COOL - it worked...
Thanks for such speedy assistance!!! Just one more silly question...
Why do I have to have the .cgi extension? when I tried it with the .pl
extension, i got a 403 forbidden....
tom
-----Original Message-----
From: Scott Carmichael [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 12:07 AM
To: 'Mark Saunders'; [EMAIL PROTECTED]
Subject: RE: stupid question
I was originally going to reply with the same thing, but I also got an
internal error 500 when I tried that. I think you also have to add:
use CGI;
.. Above that as well? That fixed the error for me.
----
Scott Carmichael
http://jobeus.net/
icq: 445472
-----Original Message-----
From: Mark Saunders [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 10:05 PM
To: [EMAIL PROTECTED]
Subject: RE: stupid question
It's not a stupid question.
The script is fine, and it would run in a *nix shell, but you're using
it on the web, so you have to add this line just below the shebang:
print "Content-type:text/html\n\n";
-----Original Message-----
From: Tom Malone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 11:53 PM
To: [EMAIL PROTECTED]
Subject: stupid question
I know this is a simple, stupid question, but i can't seem to find the
answer. I've never used Perl before - only PHP. NOt very familiar with
unix
either...
I'm trying to get this hello world script to work - I have the shebang -
#!/usr/bin/perl at the beginning of the file, and verified with my host
that
it is the correct path. The host said to put the file in my cgi-bin,
which i
also did, and i chmoded it to 755, which was also a direction from my
host.
I tried naming it hworld.pl and hworld.cgi, but i still get this stupid
500
internal server error and can't figure out why.
The script is very simple:
#!/usr/bin/perl
print "Hello World!\n";
Can someone please help this helpless newbie??
Thanks in advance!
Tom
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]