Let me add one more to the list:Notepad - If you used it to change your path to perl, it can be the cause. It sometimes adds invisible characters that mess up the scripts.
DO NOT USE NOTEPAD FOR PERL/CGI SCRIPTS. I recommend Textpad as the official Bomber text editor.
www.textpad.com (free for 30 days, then a minor nag screen)