meetraz has asked for the wisdom of the Perl Monks concerning the following question:
I have my own library of modules which function sort of like plug-ins:
use MyPlugins::ModuleA; use MyPlugins::ModuleB; use MyPlugins::ModuleC; (etc)
This list is now a couple pages long, and tedious to maintain. Is there an easier way to just automatically include all the modules installed in a certain directory (e.g. MyPlugins) without specifying them manually somewhere?
Or do I have to resort to a File::Find hack?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Include Modules Automatically?
by Corion (Patriarch) on Jan 05, 2009 at 19:04 UTC | |
|
Re: Include Modules Automatically?
by kennethk (Abbot) on Jan 05, 2009 at 19:41 UTC | |
|
Re: Include Modules Automatically?
by FunkyMonk (Bishop) on Jan 05, 2009 at 19:59 UTC | |
|
Re: Include Modules Automatically?
by jasonk (Parson) on Jan 06, 2009 at 21:01 UTC |