in reply to Debugging: What's going on here?

it sounds like /usr/bin/perl is not the path to your perl interpreter (the error message is coming from bash, not perl). if you are able to type "perl" on the command line and get an interpreter, you should be able to change the first line to "#! perl -w" and get it to work.

to figure out the location of your perl interpreter, type "which perl" at the bash prompt.

also, try to run "perl test.pl", instead of relying on bash to figure it out, and see if you still have problems.