in reply to Re^5: $_ not set in while <>
in thread $_ not set in while <>
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: $_ not set in while <>
by ikegami (Patriarch) on Jun 09, 2021 at 19:06 UTC |