P is for Practical | |
PerlMonks |
Re^3: while behaviour on binary filesby Anonymous Monk |
on Nov 14, 2013 at 19:21 UTC ( [id://1062646]=note: print w/replies, xml ) | Need Help?? |
Your misunderstanding is that <DATFILE> actually _reads_ from the file until the next end-of-line character. (You then throw away the data.) It's not the test for end-of-file. eof() is.
In Section
Seekers of Perl Wisdom
|
|