in reply to
Storing pattern matches
May be you should look at
Regexp::Grammars
. It allows to parse relatively complex texts in declarative way.
Comment on
Re: Storing pattern matches
In Section
Seekers of Perl Wisdom