Don't import anything and use namespaces to be explicit where every function is coming from.
That requires you to look up where each function is defined,
which almost breaks encapsulation. If you do use Module;, and get a function func imported to
your name space, it doesn't mean you got Module::func. Module could have use
OtherModule itself, and you might have gotten
OtherModule::func.
Do you use this style for OO programming as well? Do you
call methods in this way: $obj -> Class::method? If not, why? Or can you remember where
all the OO methods are defined, but not the procedurial subs?
Abigail
| [reply] [d/l] |
| [reply] |