Can you try running that $text .= "5 purple pen\n"; added? I don't think you'll get an error (although the colour will be 'undef' in the result). I can't verify this for myself since I don't have this module.
Update: Nevermind, I see something in the docs I didn't see before, concernign the returning values of actions.. I think the | <error> is unnecessary, btw. That's what confused me.
In reply to Re^2: Dynamic expansion of tokens with Parse::RecDescent
by ikegami
in thread Dynamic expansion of tokens with Parse::RecDescent
by jaldhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |