I want to do something like
$val = "value1"
my %test = ("value1" => "yes", "value2" => "yes", "value3" => "yes");
print $test{$val};
So if either $val is equal to either value1, value2 or value3 then display "yes" otherwise display "no"
Not sure if I'm doing it the correct/efficient way. I'm new to perl