Rafael Laboissiere - [EMAIL PROTECTED] wrote:

The tutorial mentions multiple times returning values from actions.

Err, no. The tutorial never says that. It says that *productions* return values, and that you can use an action to change what that value is. Neither the tutorial nor the extensive documentation for the module ever states that actions return values. Nor do any of the many examples shown ever use a C<return> inside an action.


One things it fails to mention is that calling return in an action is
completly different from setting $return or just specifying the value as
the last statement.

This is true. Frankly, it never occurred to me that anyone would even try to do that. Nor have I ever had that misunderstanding reported to me before. Of course, now that I have, I will definitely add a warning to the "GOTCHAS" section of the documentation for the next release.


As for changing the tutorial, I am unable to do that, not being the copyright holder.

I apologize that you had difficulties with the module. It has always been my aim to make it easy to use. For future reference, there are two excellent sources of help for debugging RecDescent-related problems:

     http://www.perlmonks.org

     mailto:[EMAIL PROTECTED]
     (subscribe first at: mailto:[EMAIL PROTECTED])

All the best,

Damian




-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to