http://www.perlmonks.org?node_id=1157470


in reply to Parsing a sentence with Regexp::Grammars

I haven't used it myself, but you seem to be missing a use Regexp::Grammars; line in your code.