Note the inclusion of [ and ] (escaped) in the definition of what 'punct' is 'not'.punct: /[^\w\s\[\]]+/ {print "<punct: $item[1]>" }
--hsm
"Never try to teach a pig to sing...it wastes your time and it annoys the pig."In reply to Re: Parse::RecDescent Grammar Fun
by hsmyers
in thread Parse::RecDescent Grammar Fun
by ichimunki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |