Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by LanX (Saint)
on Dec 21, 2020 at 20:36 UTC ( [id://11125564]=note: print w/replies, xml ) Need Help??


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 )

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11125564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-25 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found