The Perl functions will treat ^Z as the end of the file and refuse to read beyond it. The trick is to use binmode()
open(INPUT,"infile.txt"); binmode(INPUT); while(<INPUT>) { ... } close(INPUT);
Then your eof() will work. On a system (like UNIX) where there are no silly modes binmode() has no effect.
In reply to Re: dos EOF in linux
by hawtin
in thread dos EOF in linux
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |