fun with sheBang was Re: I can't get this to run!

2002-04-29 Thread drieux
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

Re: I can't get this to run!

2002-04-28 Thread Peter Scott
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

Re: I can't get this to run!

2002-04-27 Thread drieux
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

RE: I can't get this to run!

2002-04-27 Thread Shaun
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