, , , . -, , . , , , <$r>
, <{my-sub(args)}>
- . ( sub - &
, Callable
, .) :
sub combine(Regex $a, Regex $b --> Regex) {
/ <$a> <$b> /
}
my regex consonant { <[a .. z] -[aeiou]> }
my regex vowel { <[aeiou]> }
my regex open_syllable { <{combine(&consonant, &vowel)}> }
"bac" ~~ m:g/ <open_syllable> /;
say ~$/;