in reply to filehandle not returning lines

Note that your adding to counter is after a next in the while loop. This probably means that your counter will not work properly. You probably want to put $counter++ first in while loop (or in continue block after while.

Replies are listed 'Best First'.
Re^2: filehandle not returning lines
by fraktalisman (Hermit) on Feb 18, 2005 at 11:03 UTC
    Oooops! Bad mistake! And that's already the solution.
    No mysterious context bug or anything like that.
    Thanks a lot! Question answered.