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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: question about $_ and eof
by strat (Canon) on Mar 13, 2002 at 12:36 UTC |
In Section
Seekers of Perl Wisdom