good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
What package is foo() from?by Anonymous Monk |
on Jun 25, 2007 at 17:48 UTC ( [id://623215]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to tell what package foo() is in?
I'm coding in an environment where there are two packages at the top, both with foo. But one could be uncommented to use it or not to use the original.
import sourcea; # uncomment to use soureb's foo # import sourceb;Is there a function to get the package name of the foo that is refered to? They have slightly (ever so slight) different behavior and I need to adjust for it.
Back to
Seekers of Perl Wisdom
|
|