[edited by: jatar_k at 1:55 pm (utc) on Aug. 9, 2007]
[edit reason] no urls thanks [/edit]
Scour the script for typographical errors. In particular, where you insert your own Email address, if the text is enclosed with double-quotes ("), make sure you put a backslash (\) in front of the @ in the address. Make sure you edit the script on your system with a plain text file editor like Windows Notepad and that you upload it in ASCII using your FTP program. The FTP program should also include a tool for setting the permissions. It should be set to 755 or -
Owner: Read, Write, Execute (RWX)
Group: Read, Execute (RX)
User: Read, Execute (RX)
Thanks
#!/usr/bin/perl
normally if you use an FTP application to transfer the file from PC to server, you do not need to worry about changing the line endings. Upload the perl script is ascii format and the ftp application will change the line endings as needed during the transfer. You may have to tell the ftp application what type of server you are transfering to or select autodetect if it has that option available. See your ftp apps help files for details.
#!/usr/bin/perl
use CGI::Carp qw/fatalsToBrowser/;
print "Content-Type: text/html\n\n";
print "Hello World";
but the CGI::Carp module will not help if the shebang line is wrong, if the permissions are wrong, or the line endings are wrong.