in reply to Re^2: Using the 'if' statement...
in thread Using the 'if' statement...

You need to anchor your pattern match in grep, otherwise ...
@countries = qw(India Germany); $country = 'd'; print "True","\n" if ( grep /$country/, @countries );