Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Private Class Methods

by premchai21 (Curate)
on Apr 05, 2002 at 18:46 UTC ( #157021=note: print w/replies, xml ) Need Help??


in reply to Private Class Methods

No -- Exporter only controls which symbols get exported (i.e. copied to, sort of) the calling package. Object method lookups get done by the bless system, which goes directly to the package symbol table, and which Exporter does not affect.

One way to achieve what you're looking for might be to have private_method use caller to determine whether it is being called from within the package in question or not...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://157021]
help
Chatterbox?
marioroy enjoys reading Corion's ventures at the work place. Love your stories.
talexb adds his 'Ditto' to that thought.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2017-08-16 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (265 votes). Check out past polls.

    Notices?