>I just tried it on another perl file, does exactly the same thing (even 
>without the -P stuff)
>
>[marshallj@datasrv marshallj]$ cat test.pl
>#!/usr/bin/perl
>print "hello\n";
>[marshallj@datasrv marshallj]$ ./test.pl
>bash: ./test.pl: Permission denied
>[marshallj@datasrv marshallj]$ perl test.pl
>hello

Permissions on ./test.pl? Location of perl compiler really
/usr/bin/perl?  Permissions on /usr/bin/perl? ./test.pl created with
DOS/Windoze editor that puts carriage returns in so that what you are
really trying to execute is /usr/bin/perl^M? (The last one is my bet.)


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to