in reply to Existing in hash

Replace the "=" that TVSET pointed to, with "eq", and you're in business.
if (exists $hash{$var1} && $hash{$var1} eq $var2) { print "Welcome\n"; }