%hash = (one => 'uno', two => 'dos', three => 'tres'); $input = <STDIN>; chomp $input; if (exists $hash{$input}) { print $hash{$input}, "\n"; }
In reply to Re: the if statement
by toolic
in thread the if statement
by kwn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |