- To: "Marshall, Joshua" <MarshallJ@xxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] Execute a file
- From: Ken Yap <ken@xxxxxxxxxx>
- Date: Wed Sep 27 14:08:35 2000
- Cc: Sydney Linux Users Group <slug@xxxxxxxxxxx>
- Reply-to: ken@xxxxxxxxxx (Ken Yap)
>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.)