- or download this
Any ~~ Array
match against an array element
grep $a ~~ $_, @$b
- or download this
Any ~~ Regex
pattern match
$a =~ /$b/
- or download this
use feature qw( say );
...
for (qw( aaa bbb ccc ddd )) {
say if $_ ~~ @pats;
}
- or download this
aaa
ccc