Do you know where your variables are? | |
PerlMonks |
Re: package function callingby derby (Abbot) |
on Jul 12, 2005 at 13:47 UTC ( [id://474275]=note: print w/replies, xml ) | Need Help?? |
Not really. There's not enough info in your post but I assume the second version has some_func in the package's EXPORT array. The perfomance penalty is in the actual exporting not in the look-up. Unless your EXPORT array is insanely huge, the perfomance cost would be down in the noise - I would worry more about namespace pollution and collision before execution time. If you really care, just Benchmark the two approaches.
-derby
In Section
Seekers of Perl Wisdom
|
|