http://qs321.pair.com?node_id=747344


in reply to Re: Parse::RecDescent matching same line twice
in thread Parse::RecDescent matching same line twice

Thank you for your answer; that appears to be what is happening. I figured it was due to my lack of knowledge about P::RD. I was puzzled by the way it appeared some of my test cases were rejecting the first rule without consequence.
  • Comment on Re^2: Parse::RecDescent matching same line twice

Replies are listed 'Best First'.
Re^3: Parse::RecDescent matching same line twice
by ikegami (Patriarch) on Mar 01, 2009 at 20:59 UTC
    It's just like in regexps
    'XZ' =~ / ^ (?: X (?{ print "X" }) Y (?{ print "Y" }) | X (?{ print "X" }) Z (?{ print "Z" }) ) \z /x; print("\n");
    XXZ