in reply to Re: question about $_ and eof
in thread question about $_ and eof
Just to clarify one point about
Q: Why does this not stop on a blank line?while (<STDIN>)
A: <STDIN> is returning a newline character '\n', which is true. In practice, regardless of O/S, you never get the empty string or a bare 0, hence the only false value you encounter is undef.
In Section
Seekers of Perl Wisdom