in reply to Re^2: Can you read a false value from a file?
in thread Can you read a false value from a file?

Did you only read the last line of my post? I said the opposite, and included a code sample proving the opposite. Even without the newline, it won't fail.
  • Comment on Re^3: Can you read a false value from a file?

Replies are listed 'Best First'.
Re^4: Can you read a false value from a file?
by grantm (Parson) on Feb 11, 2006 at 10:03 UTC

    No, I misread the whole thing - sorry.

    Is it documented anywhere that

    while (my $line = <FH>)

    is equivalent to

    while (defined(my $line = <FH>))

      But it used not to be that way, the implicit defined got added. In fact, your description is precisely why it got changed. Even more: if one of the files in the middle of a files list ended wit a bare "0", the rest of the files were just dropped.