Re: P::RD and OOP

[email protected] ("Sean O'Rourke") Tue, 03 Aug 2004 08:44:26 -0700
Newsgroups perl.recdescent
Message-ID <[email protected]>
<[email protected]> writes:
> Then where do I save those dirs? $Nokia::Gen::self->{SUBREF} 
> wouldn't work since there is no such variable. And if I use 
> $main::parser->{SUBREF} then the variable name is hardcoded.

From the P::RD manpage, I've found

    $thisparser
        A reference to the Parse::RecDescent object through which
        parsing was initiated.

Would this do what you need?  Could you store directories as
$thisparser->{DATA}{SUBREF}?

/s