Don't ask to ask, just ask | |
PerlMonks |
Re: control-d out of loop?by chipmunk (Parson) |
on Dec 03, 2001 at 07:29 UTC ( [id://129028]=note: print w/replies, xml ) | Need Help?? |
When you type a Control-D, it simply terminates the input; the Control-D character does not get passed in as input. Anyway, if you rewrite your loop, you don't need to check for Control-D:
<STDIN> will return undef when there is no more input on STDIN.
In Section
Seekers of Perl Wisdom
|
|