Some versions of Perl require that you use single qoutes inside of the brackets when specifying environmentals - i.e. $ENV{'HTTP_REFERER'} - if that doesn't work I'm totally lost.

Also, totally confused as to who would install Perl without including core components, such as strict, but other than that cgi101 is correct in saying it is optional but it's use will prevent scoping errors, etc (similar to Option Explicit in VB).

You need to direct some output to the browser via the print command - after you've printed the errorlog enter another line printing anything - I tend to use something like "Print "1\n";", etc, so I can determine where the script is dying at.

If you get an internal error when trying to print some text that's an indication that the "print header" line isn't working and the script doesn't know what/where to send the output. In that case replace the "print header" line with "print "Content-type: text/html\n\n";" and try the script again.