you need to loop through the keys, comparing $input to each keyThat's what exists is for. In this case if ($hash{$input}) { ... } is probably good enough.
In reply to Re^2: the if statement
by FunkyMonk
in thread the if statement
by kwn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |