|No such thing as a small change|
5.10 named capture in DEFINE regexby philcrow (Priest)
|on Dec 27, 2007 at 17:04 UTC||Need Help??|
philcrow has asked for the
wisdom of the Perl Monks concerning the following question:
I've started playing with the named capture and grammar features of 5.10. I like what I see, but I did find something that stumped me.
If I use a named capture I get what I expect:
But, when I try to DEFINE a grammar, the named capture only stores undef:
Am I missing something?
(Perhaps my excitement at the new grammar features has raised my expectations too high. I was starting to hope for a parse tree.)
The Gantry Web Framework Book is now available.