On Thursday 31 January 2002 09:19, Anuerin G.Diaz wrote:
[snip]
> and test.pl contained in its first line the entry (without the quotes)
> "#!/usr/bin/test.pl"
>
> but when i substitute this line "#!/bin/perl"

This is the correct first line of a perl script if perl resides in /bin. The 
first line of a perl script needs to contain the location of the interpreter.

> i get this one
>
> [adiaz@Ronin tmp]$ ./test.pl
> syntax error at ./test.pl line 5, at EOF
> Execution of ./test.pl aborted due to compilation errors.

I think you got this because there was no linefeed at the end of this first 
line.

John

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to