Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Private Class Methods

by Kanji (Parson)
on Apr 05, 2002 at 19:22 UTC ( #157031=note: print w/replies, xml ) Need Help??


in reply to Private Class Methods

Yet another way to do it is with the use of appropriately scoped anonymous subs...

my $private_method = sub { # ... do stuff only class things should know }; $private_method->();

    --k.


Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-08-11 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?