I think, the construct while (<STDIN>) { is just another way to write: while (defined ($_ = <STDIN>)){, not only for while ($_ = <STDIN>) {.
The difference is not big; only if there is a 0 (=zero) on the last line of a file without \n, it can become essential. But with pure STDIN this case might never happen, only with files or the like...
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
In reply to Re: Re: Re: question about $_ and eof
by strat
in thread question about $_ and eof
by wageslave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |