|Just another Perl shrine|
Re: Multiple Library Includesby Intrepid (Deacon)
|on Jun 30, 2004 at 17:27 UTC||Need Help??|
Hi All, I would like to have cpan modules installed into multiple directories on a single computer, as shown in the following example:
Yep ... compile perl yourself, with these as your build-time config params. You asked for elegant. This is the only elegant way. All other ways that might be devised are only express trains on the bad line headed straight for Kludgeville.
In particular, the vendor* dirs seem correctly suited to this notion you have of placing modules belonging to specific applications in a separate directory hierarchy of their own.
Related sufficiently to this question that I dare mention it, I've got a tool that I wrote for people with issues like this in mind: showPerlDirConfig. This will show you what your currently-running perl knows internally as its Config dirs. Looking at the output for a just a minute is likely to bring about better understanding for you than quite lengthy attempts at verbal explanations would accomplish.
After running that utility of mine, reading the POD-format file INSTALL that is found in the toplevel of every Perl source kit (every release), would give you some insights, I think.
-- Now, 2004: The 3 least meaningful terms in online jargon are: