Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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 surveying the Monastery: (6)
As of 2016-02-14 07:20 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (460 votes), past polls