Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: while loop almost correct

by Anonymous Monk
on Nov 17, 2009 at 10:15 UTC ( [id://807647]=note: print w/replies, xml ) Need Help??


in reply to while loop almost correct

You may want to look at IO::Prompt.
use IO::Prompt; my $reply = prompt("Pick a letter between a and d.\n", -r => { "Pick a letter between a and d -- or else!\n" => qr/^[a-d]$/i } );

Replies are listed 'Best First'.
Re^2: while loop almost correct
by irvson (Sexton) on Nov 17, 2009 at 23:32 UTC

    Thanks. Something else to learn. That's why I'm here.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found