Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: comparison of character

by BillKSmith (Chaplain)
on Jul 16, 2013 at 15:05 UTC ( #1044624=note: print w/ replies, xml ) Need Help??


in reply to comparison of character

I recommend that you use a module to prompt. Under ActiveState, use ActiveState::Prompt. It has a function called 'yes' whic does what you want. On other platforms, use IO::Prompt::Hooked. The documentation uses your case as an example of prompt with validation.

Bill


Comment on Re: comparison of character

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-12-26 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls