Where is Perl?Perl is #!/usr/bin/perl
Perl is not any of the following:
How should I troubleshoot my Perl script?The simplest way to troublshoot your perl script is from the Unix shell. Perl has a built in checking mechanism you can envoke with 'perl -c'. If you are using specific perl libraries such as cgi-lib.pl, you may want to use the machine atlantis.io.com to troubleshoot your script. Atlantis has the same version and libraries of perl as installed on our webservers.
Using 'perl -c' normally gives you specific error messages. Here are some examples:
There are, of course, many other error messages possible and many different ways of troubleshooting your script yourself.
I got the message:
What does that mean?This is most commonly caused when you edit a script under a windows or macintosh platform and have transfered the script using binary mode in FTP.
Many windows and macintosh based editors put carriage returns at the end of each line of a text document. You should try saving your document as a 'plain text' document as opposed to your editor's default format.
When you transfer your script via FTP, you should be using plain text or ASCII mode instead of binary or automatic mode. Transfers to a UNIX system using binary mode will preserve carriage returns in scripts which perl cannot understand.
Where is cgi-lib.pl?To use cgi-lib.pl, include the following lines in your script:
What kind of server am I on?If you have a virtual domain, your pages are served by one of five machines:
If you don't have a virtual domain, your pages are served by a round-robin of two machines (www-01.io.com and www-03.io.com). These two machines are each Pentium II 400 MHz processors with 384 MB of SDRAM. Both machines answer to the hostname 'www.io.com' and both are running RedHat Linux and the Apache http server.
What Perl libraries are installed?There is a list of what Perl libraries are installed on our servers.
Are there any restrictions on CGI?There are only two restrictions for CGI's on our system.
First, we reserve the right to terminate, move, or otherwise change a script that may be hindering the performance of our servers.
Second, it is strictly against our system policy to use a CGI or script on our system to produce click-through banner ads. This is specifically targeted at banner advertizements of an adult nature.