Or you could use a for loop, or mapmy $pattern = join ('|', @countries); if ($country =~ /^($pattern)$/) { print "True\n" }
In reply to Re: Using the 'if' statement...
by cdarke
in thread Using the 'if' statement...
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |