Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Reloading modules more than once

by danger (Priest)
on Aug 04, 2002 at 13:54 UTC ( #187486=note: print w/ replies, xml ) Need Help??


in reply to Reloading modules more than once

To answer your specific question, the %INC hash keeps track of what has been loaded via do, require, or use --- if you want to re-require a file, simply delete its entry in the %INC hash and require it again (see the %INC entry in the perlvar manpage). However, you may want to rethink your design --- with more information on why you want to do this and what problem you are trying to solve, we might be able to offer better solutions.


Comment on Re: Reloading modules more than once
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2015-07-06 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (81 votes), past polls