On Sunday, April 28, 2002, at 05:57 , Peter Scott wrote:
> At 05:20 PM 4/27/2002 -0700, drieux wrote:
>>> That's because the shebang line is ignored when you prefix the script
>>> with
>>> the perl command.
>>
>> you are correct - but I prefer to assert it the other way around,
>>
>> when the p
At 05:20 PM 4/27/2002 -0700, drieux wrote:
>>That's because the shebang line is ignored when you prefix the script with
>>the perl command.
>
>you are correct - but I prefer to assert it the other way around,
>
>when the perl interpretor is invoked with a file - it reads and
>executes the perl way
On Saturday, April 27, 2002, at 03:20 , Shaun wrote:
>> $ perl /usr/lib/cgi-bin/agbot/agbot.cgi
>
>> and it works just fine.. Huh? I don't get it..
> That's because the shebang line is ignored when you prefix the script with
> the perl command.
you are correct - but I prefer to assert it the
Hi,
> I can't get this cgi script I downloaded to run...
Try checking the file for ^Ms at the end of the line with:
$ cat -v /usr/lib/cgi-bin/agbot/agbot.cgi
I think you will find that it will have:
#!/usr/bin/perl^M
Then you will have to strip off all the ^Ms from all the lines with:
$ perl -p