in reply to matching elements in a list in a logical OR fashion
An interpolated array:
matches if any of its elements eq matches the string at that point. So the above example is equivalent to:use Perl6::Rules; @cmds = ('get','put','save','load','dump','quit'); $str =~ m/ @::cmds /;
$str =~ /get|put|save|load|dump|quit/;
|
---|