in reply to Using the 'if' statement...
Or you could use a for loop, or mapmy $pattern = join ('|', @countries); if ($country =~ /^($pattern)$/) { print "True\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using the 'if' statement...
by ikegami (Patriarch) on Jul 09, 2008 at 10:02 UTC | |
|
Re^2: Using the 'if' statement...
by harishnuti (Beadle) on Jul 09, 2008 at 09:44 UTC | |
by ikegami (Patriarch) on Jul 09, 2008 at 10:05 UTC | |
by DrHyde (Prior) on Jul 09, 2008 at 10:29 UTC |