in reply to control-d out of loop?
<STDIN> will return undef when there is no more input on STDIN.while($picks = <STDIN>) { chomp($picks); # do stuff }
|
---|
Replies are listed 'Best First'. | |
---|---|
EOF confusion (was: control-d out of loop?)
by clintp (Curate) on Dec 03, 2001 at 20:19 UTC | |
Re(2): control-d out of loop?
by dmmiller2k (Chaplain) on Dec 03, 2001 at 23:32 UTC | |
Re: Re: control-d out of loop?
by Fastolfe (Vicar) on Dec 04, 2001 at 02:57 UTC | |
There is a way!
by Marza (Vicar) on Dec 05, 2001 at 04:49 UTC | |
Re: Re: control-d out of loop?
by Marza (Vicar) on Dec 04, 2001 at 23:03 UTC |