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

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://952339]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-09-25 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (276 votes). Check out past polls.

    Notices?