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]

Reply via email to