4 ms·
Actually Perl6 does enforce it if you tell it to. The following fails to match. 'abc' ~~ m:ratchet/ .* c / The `.*` gobbles everything up, which means the
by b2gills 8y ago
Actually Perl6 does enforce it if you tell it to. The following fails to match.
'abc' ~~ m:ratchet/ .* c /
The `.*` gobbles everything up, which means there is nothing left for `c`
When writing grammars, use `token` which turns on `:ratchet` for you.