Subrule matches
regex TOP { <integer> <addop> <integer> {*} } regex integer { \d+ {*} } regex addop { [ '+' | '-' ] {*} } method TOP($/) { say("found an expression ", $/); }
The captured components are the Match objects returned from the subrule
continued...