Do you know where your variables are? | |
PerlMonks |
Creating a global functionby Anonymous Monk |
on Sep 06, 2004 at 15:23 UTC ( [id://388819]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: I was wondering if it is possible to create a global function.
What I would like to be able to do is:
Is this possible? (without importing the function in each package?) The modules/packages in which the modules is used is not know in front so it is not possible to export them at the start... So far I've tried to export the function to the CORE::GLOBAL package and to the CORE package but this did not gave the result I want... Anyone know if this is possible? and/or where I can read about it? and/or how to do it?
Back to
Seekers of Perl Wisdom
|
|