Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
where $module is the name of the package (without the '.pm') This works, however, my program has numerous user modules, and I'd like to put them all in a 'modules' directory off the base program directory. Is there a painless way to load them from this directory without changing package names? It seems so simple, but I can't figure it out. Thanks, Michaelif (require "eval $module") { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: locating modules in local dir
by matija (Priest) on Feb 25, 2004 at 17:12 UTC | |
by b10m (Vicar) on Feb 25, 2004 at 17:20 UTC | |
|
Re: locating modules in local dir
by halley (Prior) on Feb 25, 2004 at 17:30 UTC |