good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
If module "MyPackage::MySubPackage" does not export functions by default, you're obliged to use the first version. Moreover, this version wipes away any ambiguity about where the function is coming from, so readability could improve. OTOH, if some_function is used frequently, the full specification could be more a noise than a readability improvement, so you'd probably find some way to import the function name and use the second approach. Just Huffman for programmers.
I would be surprised if there were any performance issues related to the two approaches. But this is a place in which it is quite easy to be surprised. Flavio In reply to Re: package function calling
by polettix
|
|