in reply to Debugging woes

You may have to change the path to perl but this could be your hello script:
#!/usr/bin/perl -w use strict; print "Content-type: text/html\n\n"; print "Hello World";

Make sure your file is saved as text and not as '.doc' or other such. If you've been copying and pasting you could get a corruption, so start a fresh file and type the above. Once that is working you can then start to add sections of your script and hopefully find the bug.