in reply to Re: Re: Package variables and Parse::RecDescent
in thread Package variables and Parse::RecDescent
Your grammar (the string) is taken apart into pieces (parsed) in P::RD and then the code to do the actual work is produced - outside your lexical scope. So apparently it can't access any lexical variables in this scope. The documenation of P::RD says to that:
The action executes within a special namespace belonging to the active parser, so care must be taken in correctly qualifying variable names
-- Hofmator
|
|---|