Perl: the Markov chain saw | |
PerlMonks |
Re^5: loading modules at runtimeby ikegami (Patriarch) |
on Oct 15, 2006 at 01:13 UTC ( [id://578333]=note: print w/replies, xml ) | Need Help?? |
use Module (); is the documented way of not importing symbols into your namespace. use Module (); does not call import. Furthermore, there is no stated requirement for all packages that use a module to use it. I often do use Module (); { package PkgA; ... } { package PkgB; ... } { package PkgC; ... }. Notice import was not called from any of the 4 packages involved. A module should not rely on import being called. (Pragmas are another matter.)
In Section
Seekers of Perl Wisdom
|
|