Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: the if statementby FunkyMonk (Chancellor) |
on Sep 27, 2008 at 22:50 UTC ( [id://714075]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|