Odd Perl interpreter problem

Ron Peterson ron.peterson at yellowbank.com
Sat Dec 29 17:57:43 EST 2001


On Sat, 29 Dec 2001, Lars Kellogg-Stedman wrote:

> > I am having an odd Perl problem on Slack 8.0 box.
> >
> > I have #!/usr/bin/perl as interpreter line in scripts.
> > I get "bad interpreter: no such file or directory" messages when trying to
> > run the script.
>
>
> Josh,
>
> Make sure there aren't any extra spaces after the #! line.
> '#!/usr/bin/perl ' is not the same as '#!/usr/bin/perl'.

Similar problem can happen if you edit a perl script on a samba share
using notepad.  You'll end up with carriage-return linefeed, rather than
just a newline.

-- 

-Ron-
https://www.yellowbank.com/




More information about the Discuss mailing list