in reply to (Re:)**4 Can this If/Else be condensed into a 1 liner with a trailing If?
in thread Can this If/Else be condensed into a 1 liner with a trailing If?

But a textfile could be malformed and missing the \n at the end of the last line (most Windows text editors forget to put a \n at the end of the last line) thus $_ could contain "0"
  • Comment on Re: (Re:)**4 Can this If/Else be condensed into a 1 liner with a trailing If?

Replies are listed 'Best First'.
Re: Re: (Re:)**4 Can this If/Else be condensed into a 1 liner with a trailing If?
by blakem (Monsignor) on Oct 02, 2001 at 21:46 UTC
    The question wasn't "can <STDIN> return FALSE" but rather "isn't there some magic built into while(<STDIN>) that makes it test for definedness instead of truthfullness?"

    -Blake