in reply to filehandle not returning lines

if your whole file is read at once, it is most likely that some part of your program modify the $/ var. $/ The input record separator, newline by default.
Read the whole story with perldoc perlvar
Boris

Replies are listed 'Best First'.
Re^2: filehandle not returning lines
by fraktalisman (Hermit) on Feb 18, 2005 at 10:53 UTC
    Thanks for the idea. But I have just double checked the whole script if it accidentally messes with $/ but it doesn't.
    The same code is behaving as it should as long as the mark $marke==0, but this makes no sense to me.