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 reply to Re: Re: question about $_ and eof
by rinceWind
in thread question about $_ and eof
by wageslave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |