Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Help using a while loop with STDIN

by Riales (Hermit)
on Feb 07, 2012 at 20:35 UTC ( #952339=note: print w/ replies, xml ) Need Help??

in reply to Help using a while loop with STDIN

I think what you're looking for is a while loop. You can wrap your prompt/check in a while loop that always loops until a correct answer is submitted.

Comment on Re: Help using a while loop with STDIN
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2015-12-01 09:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (797 votes), past polls