Can you see why it doesn't capture the number but leaves $1 undef'd? Any help apprechiated.use Perl6::Rules; grammar Foo { rule number { (\d+) { print "Found '$1'\n"; } } } "123" =~ m/<Foo.number>/;
In reply to Perl6::Rules Capturing by saintmike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |