: This message was edited by Xfactor at 2004-2-6 22:57:8
: : I am trying to write a hello world Perl/CGI program.
: :
: : When I go to the file on the web it says "Internal Server error"
: :
: : I have already changed the permissions on helloworld.pl and I am pretty sure that I have the right #! line at the beginning. Any ideas what could be wrong?
:
: We have to see your code but make sure you have the print statement:
:
: print "Content-type: text/html\n\n";
:
: This needs to be placed before your other perl code. If this isn't the problem, you'll need to post your code.
:
Or more specifically, it has to be before any other print statement.
Also, if you FTP'd the file up, make sure you did so in ASCII mode, otherwise you'll run into issues with different line endings, which also results in an Internal Server Error.
Do you have access to the server's error log? If so, it can often provide valuable insight into the problem - just grep it for the name of your script (if you have that kinda access to it).
Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");