Koozali.org: home of the SME Server

PERL not working

Michel Ouellette

PERL not working
« on: May 26, 2002, 06:19:04 AM »
I'm trying to set up a perl script.  But it will not run if I try to make it self executable using #!/usr/bin/perl

The script runs fine when I type "perl script.pl" but not if I type just "script.pl"
I get the following

BASH: script.pl: command not found

any idea of what I could be doing wrong?

This is only a test script, I'm only trying  to see if I can make a perl script run.  But I 've run into this problem right away

Thanks

Dan Brown

Re: PERL not working
« Reply #1 on: May 26, 2002, 06:53:55 AM »
Is the script executable?  Check its permissions.

robert

Re: PERL not working
« Reply #2 on: May 31, 2002, 02:20:42 PM »
Also: is it in your PATH?

Filippo Carletti

Re: PERL not working
« Reply #3 on: May 31, 2002, 02:43:52 PM »
Check that lines are not CRLF terminated (dos files, if you use vi, it says [dos]).
If yes, cat script | tr -d "\015" >scriptnew