- or download this
if (&{sub { $bigstring =~ /$_/ and return 1 for @array }}) {
...;
}
- or download this
my $matched;
$matched = $bigstring =~ /$_/ and last for @array;
if ($matched) {
...;
}
- or download this
if (grep $_, map $bigstring =~ /$_/, @array) {
...;
}
- or download this
if (map $bigstring =~ /$_/ ? 1 : (), @array) {
...;
}