executing perl scripts

Does anybody experiencing this same problem?

I am using IRIX64 ver 6.5 at work.
I wrote some Perl scripts and to execute it.

First I try to put the Perl script at:
/$HOME/bin/perlscript
then I set the correct executable 755 right to the file
I make sure the PATH to the executable exist.
I did a %which and %whereis command and they located the correct location the file

But when I try to excute the file. It can't be execute and error mess said file not found.

Second, I try to move the executable to /usr/bin to test to see if it can be execute. And the same problem persist.

Does anyone has an answer to it?

Thank alot if you know the answer and I will be very appreciated.
Thank you.
Vu

The first line of your script is probably something like:
#! /usr/local/bin/perl

See if that can be found. Maybe the kernel cannot find your version of perl.

I found the problem earlier. It was exactly what you said.
Thanks alot,