Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Private Class Methods

by Kanji (Parson)
on Apr 05, 2002 at 19:22 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found