Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: loading modules at runtime

by ikegami (Patriarch)
on Oct 15, 2006 at 01:13 UTC ( [id://578333]=note: print w/replies, xml ) Need Help??


in reply to Re^4: loading modules at runtime
in thread loading modules at runtime

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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://578333]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-19 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found