On Tuesday, June 25, 2002, at 11:44 , Robert Warning wrote:
[..]
> #!/usr/bin/perl at the beginning of any of my programs it wont run. I
> get an output from the shell that says /usr/bin/perl: bad interpreter:
> Permission denied.

This sounds like your version of perl is clearly installed
somewhere else on that machine...

hence if a test run of

        perl *.pl

works - it's a matter of the 'which/whereis' to find where
the binary is that you want to run is installed.

The short trick then is to put in a symbolic link - like many
of us have done for backward compatability:

[jeeves:~/perl] drieux% ls -l /usr/local/bin/perl
lrwxr-xr-x  1 root  wheel  13 Jun 13 10:55 /usr/local/bin/perl -> /usr/bin/
perl
[jeeves:~/perl] drieux%

[..]

>  I did not write any of my scripts in windows so it would
> read the script as /usr/bin/perl\r. Any help would be appreciated.
>
[..]

Assuming that none of the other solutions have worked out...

the worst of all jokes I have come across is that

        #!/usr/bin/perl -w

will 'shift' any 'strange' characters off the "executable"
name itself - so that you do not have to worry about EOL tokens
being one way or the other....



ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to