- Misunderstanding 1:
- Having relatively high density.
- Slow to comprehend; of low intelligence.
- Misunderstanding 2:
Marshall was only attempting to read from the keyboard (and misunderstanding the OP)
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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery