Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Using user input to return variable typed.

by BillKSmith (Chaplain)
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 having an uproarious good time at the Monastery: (7)
As of 2014-12-28 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (180 votes), past polls