in reply to Re^5: Qualified package variable access ( private methods )
in thread Qualified package variable access

> But you can't, of course, because $n is out of scope at that point. It is not a member of the "class".

I was aware of the scoping/closure effect, but I very rarely see Perl code where class definitions are dispersed over more the one file.

I.O.W file scope is sufficient.

And I think we aggree that Perl allows so many kinds of introspection (e.g. PadWalker) that privacy becomes relative.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^6: Qualified package variable access ( private methods )