in reply to Re: dos EOF in linux
in thread dos EOF in linux
i feel that i need this test because otherwise, the line that contains just the EOF will read properly, because there it is data, even though its the DOS EOF. because the read is true, we get in the while loop, and the line containing just EOF gets sent to process_line(). am i missing something here?... open INPUT_HANDLE .... or die ... while ( my $line = <INPUT_HANDLE> ) { chomp $line; last if my_eof_test($line, \*INPUT_HANDLE); process_line($line); } close(INPUT_HANDLE); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: dos EOF in linux
by demerphq (Chancellor) on Jan 21, 2003 at 19:09 UTC | |
|
Re: Re: Re: dos EOF in linux
by Mr. Muskrat (Canon) on Jan 21, 2003 at 18:13 UTC |