I have a file called perl and perl5.8.3 in the /usr/bin directory. I ran vi against the perl file and what was on the screen didn't look like any text file I had ever seen.
Fair enough, I just wanted to make sure you didn't have some strange situation where perl was in /usr/local/bin instead of /usr/bin.
does the following command produce the same error (forcing a specific interpreter to be called):
$/usr/bin/perl mailgrep.pl
