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

Re: Using user input to return variable typed.

by BillKSmith (Hermit)
on Nov 12, 2012 at 20:52 UTC ( #1003506=note: print w/ replies, xml ) Need Help??


in reply to Using user input to return variable typed.

Store your results in a hash. Use the names as hash keys and the values as hash values. Prompt the use to enter one of the hash keys. Look up the value un the hash. If the key is not in the hash, ask the user to try again.

Bill


Comment on Re: Using user input to return variable typed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-04-20 22:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls