Maybe it might be worth the time to take a look at how the Damian handled that situation in Parse::RecDescent, which IMHO has to solve the same problems as you describe.
Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com
In reply to Re: creating dynamically named 'my' variables
by clemburg
in thread creating dynamically named 'my' variables
by ajwans
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |