in reply to Deteriming how much is left to read on a filehandle
How do you determine how much is left to read on a filehandle or socket?
Well, according to page 132 of the Camel Book, it says that $. is a special variable that holds "The current input line number of the last filehandle that was read." I assume that you could (if you knew how many lines were in the file) periodically compare $. and the line number of the EOF...just my 2 (newbie) cents.
redmist