in reply to Re^2: Messing with %INC.
in thread Messing with %INC.
In that case, you may find mr_mischief's suggestion of using code references (such as anonymous subs in a hash) a much more flexible approach.
For example, the different plugins can reside in their own packages, and register themselves with the main program, instead of having all plugins be in the same package or the main program having to figure out where the plugin's functions are.
Reloading a file can be useful if you're reloading the same file repeatedly (e.g. after changes).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Messing with %INC.
by Theodore (Friar) on Apr 24, 2014 at 14:38 UTC |
In Section
Seekers of Perl Wisdom