good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Hash from promptby Athanasius (Archbishop) |
on Oct 13, 2014 at 04:37 UTC ( [id://1103588]=note: print w/replies, xml ) | Need Help?? |
You’re welcome. Here is a more robust version of the script which uses exists to test that the fruit entered is present as a key in the hash before trying to access its corresponding value:
Typical runs:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|