|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Using user input to return variable typed.by BillKSmith (Friar) |
| on Nov 12, 2012 at 20:52 UTC ( #1003506=note: print w/ replies, xml ) | Need Help?? |
|
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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||