in reply to Executing a Perl program

As mentioned in the chatterbox, How do I post a question effectively? is a good read. Your closing code tag should be </code rather than <\code>, this can't have looked right when previewing your post. On to your perl problem. What does the following produce when run from the command line:

file /usr/bin/perl

Do you have any weird line endings breaking the shebang line?