Re: Illegal character error for blank line.

2002-02-06 Thread John W. Krahn
Student Of Perl wrote: > > Hi there, Hello, > i have very strange problem. > I have a simple script which I run > on Windows98 (PC) and it > executed properly. But when I > sent it to someboday by email > who uses Unix ; it give error. > > The first 3 lines of the script are > comments in foll

Re: Illegal character error for blank line.

2002-02-06 Thread Dave Benware
Student of Perl wrote: > > Hi there, > > i have very strange problem. > I have a simple script which I run > on Windows98 (PC) and it > executed properly. But when I > sent it to someboday by email > who uses Unix ; it give error. > > The first 3 lines of the script are > comments in following

Re: Illegal character error for blank line.

2002-02-06 Thread William.Ampeh
In Unix, the person has to do two things 1./ On the very first line of the file, he/she has to insert the location of his/her PERL interpreter (the location of the PERL interpreter can be found with "which PERL"). For example; redhat1:/home/(38)% which perl /opt/local/bin/perl

Re: Illegal character error for blank line.

2002-02-06 Thread Brett W. McCoy
On Wed, 6 Feb 2002, Tanton Gibbs wrote: > You've run across the typical cross-platform issues that arise between Unix > and Windows. The problem is that Windows uses \r\n to terminate a line > while Unix just uses \n. When perl on unix sees \r it doesn't know what to > do because it only expect

Re: Illegal character error for blank line.

2002-02-06 Thread Tanton Gibbs
You've run across the typical cross-platform issues that arise between Unix and Windows. The problem is that Windows uses \r\n to terminate a line while Unix just uses \n. When perl on unix sees \r it doesn't know what to do because it only expects \n. Therefore, to correct the problem, you nee