http://qs321.pair.com?node_id=456348


in reply to How to lay out private modules?

For my work application, the modules are installed into an installation-specific directory (which is never in perl's lib hierarchy). They are all named with an application prefix ("NVC::" in this case), but that's more to avoid confusion in coding than confusion on the filesystem.

Scripts tend to have an early:

use lib 'lib'; # fixup on install
which is fixed up at installation to point to the installation's lib directory. (If you run an uninstalled script directly from the CVS checkout directory the unmodified line will also do the right thing, as long as you are in the top-level directory to start with.)

This system works very cleanly for us, and we have some 40 or so installations of the application (scattered across various revisions of the code) all happily coexisting on a single machine.

Hugo

Replies are listed 'Best First'.
Re^2: How to lay out private modules?
by hakkr (Chaplain) on May 13, 2005 at 09:11 UTC

    If you are website based you may find some structure based on the java naming conventions useful.
    They use the domain name in reverse to give a distinct lib path to each website

    For example org.perlmonks.monastry, com.ebay.auction etc etc