in reply to Invoking Perl on a script, vs. using shebang

Have you set +x on the file? chmod +x ./file.pl


Evan Carroll
www.EvanCarroll.com

Replies are listed 'Best First'.
Re^2: Invoking Perl on a script, vs. using shebang
by liverpole (Monsignor) on Feb 19, 2006 at 03:37 UTC
    Yes, it was one of the first things I did.  I even have an alias for making any file executable (I'm more of a tcsh fan than bash, so I use the alias:  alias cx chmod +x \!\*, and then cx <file>), but I went further and did a chmod 777 on both the original file backup and the test file hello.pl, and did a chown root.root on each.  Still no success.

    @ARGV=split//,"/:L"; map{print substr crypt($_,ord pop),2,3}qw"PerlyouC READPIPE provides"