That's why he didn't care about checking defined for the line, since undef is a way to indicate EOF for files.
But the special power of while(<>) is that he could call it on a file in @ARGV for testing those manual inputs
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^6: $_ not set in while <>
by LanX
in thread $_ not set in while <>
by pidloop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |