in reply to Invoking Perl script from an email

Another thing that is always worth doing is ensuring that you have absolute paths for all executables i.e. try
"| /usr/bin/perl /path/to/my/file.pl"
Also if your script uses any modules it is a good idea to make sure that the necessary environment variables are set first (try running your script after
unsetenv PERLLIB unsetenv PERL5LIB
Of course if your shell is not csh or tcsh then translate this to your own version)