Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Cancel/no-op a require (%INC, Module::Loaded - mark modules as loaded or unloaded )

by Anonymous Monk
on Dec 08, 2012 at 09:55 UTC ( #1007877=note: print w/ replies, xml ) Need Help??


in reply to Re: Cancel/no-op a require (%INC)
in thread Cancel/no-op a require

Module::Loaded - mark modules as loaded or unloaded

use Module::Loaded; $bool = mark_as_loaded('Foo'); # Foo.pm is now marked as loaded $loc = is_loaded('Foo'); # location of Foo.pm set to the # loaders location eval "require 'Foo'"; # is now a no-op $bool = mark_as_unloaded('Foo'); # Foo.pm no longer marked as loaded eval "require 'Foo'"; # Will try to find Foo.pm in @INC


Comment on Re^2: Cancel/no-op a require (%INC, Module::Loaded - mark modules as loaded or unloaded )
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-09-20 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls