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

Needlessly uses captures, and incorrectly assumes @countries contains regexps. Fix:
my $pattern = join '|', map quotemeta, @countries; if ($country =~ /^(?:$pattern)$/) { print "True\n" }

Or even

my ($pattern) = map qr/^(?:$_)$/, join '|', map quotemeta, @countries; if ($country =~ $pattern) { print "True\n" }