in reply to Re^2: Parse::RecDescent Grammar Questions
in thread Parse::RecDescent Grammar Questions

Yeah, you're probably right. In this case Parse::RecDescent probably resolves it by choosing one without informing you that there are other options - just my guess, though.

Replies are listed 'Best First'.
Re^4: Parse::RecDescent Grammar Questions
by ikegami (Patriarch) on May 20, 2008 at 21:53 UTC

    It always tries them in order until one succeeds. If none do, it backtracks.

    In this case, the first one always succeeds (seeing as it can match zero items).