Perl Monk, Perl Meditation | |
PerlMonks |
Re: Private Class Methodsby premchai21 (Curate) |
on Apr 05, 2002 at 18:46 UTC ( [id://157021]=note: print w/replies, xml ) | Need Help?? |
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...
In Section
Meditations
|
|