Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^5: Waiting For Input

by Corion (Pope)
on Mar 04, 2013 at 09:18 UTC ( #1021614=note: print w/replies, xml ) Need Help??

in reply to Re^4: Waiting For Input
in thread Waiting For Input

Why did you write that loop in the first place?

On Windows, you end input to STDIN by entering CTRL+Z on an empty line and pressing enter.

Replies are listed 'Best First'.
Re^6: Waiting For Input
by Anonymous Monk on Mar 04, 2013 at 09:28 UTC

    This is used such that when user presses ENTER the script stops and resume only when ENTER is pressed again

      Maybe you want the user to enter something else to quit the program?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021614]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2016-10-28 21:03 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (387 votes). Check out past polls.