Welcome to the Monastery | |
PerlMonks |
Re: question when learning P::RD?by Laurent_R (Canon) |
on Aug 28, 2016 at 10:03 UTC ( [id://1170613]=note: print w/replies, xml ) | Need Help?? |
Hi xiaoyafeng,
I am not sure you really need a parser for such a simple format. Simple regexes on individual lines should probably do the work. I haven't been using the Parse::RecDescent recently, so this may have no consequence, but maybe you could try to remove the spaces before the colons (":" characters) in your rule definitions.
In Section
Seekers of Perl Wisdom
|
|