On Fri, 28 Jan 2005 09:49:06 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote:
> Matt Diephouse <[EMAIL PROTECTED]> wrote:
> 
> > The readline opcode returns too many lines. Compare the following pir
> > with `wc -l`.
> 
> >      unless file goto END
> >      $S0 = readline file
> 
> It needs (currently) a test for an empty string:
> 
>    unless $S0 goto END

I already use that workaround in some of my code, but that sorta
defeats the purpose of testing the filehandle itself. The filehandle
should become false after it returns the last line of the file - not
the last line plus an empty string.

-- 
matt diephouse
http://matt.diephouse.com

Reply via email to