Your desired output makes no sense.
syntax error at a.pl line 5, near "{" Can't find string terminator "'" anywhere before EOF at a.pl line 9.
The (first) fundamental bit you are missing is a definition of what you want to get from the parser. If you don't even know what you want, how can you hope to write a parser that produces it!
In reply to Re: Can I get some rules help with PARSE::RECDESCENT
by ikegami
in thread Can I get some rules help with PARSE::RECDESCENT
by DevM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |