- or download this
# Takes a string and a list of REs. Returns true or false
# depending on whether all of them match.
...
}
return 1;
}
- or download this
if (match_all($str, split(/\s+/, $search_str))) {
print "All of them matched\n";
}
- or download this
OUTER: {
foreach my $animal (@animals) {
...
}
print "Matched all of them!";
}