Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: How to lay out private modules?

by hv (Parson)
on May 12, 2005 at 11:23 UTC ( #456348=note: print w/replies, xml ) Need Help??

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.


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, etc etc

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://456348]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2019-06-26 13:49 GMT
Find Nodes?
    Voting Booth?
    Is there a future for codeless software?

    Results (110 votes). Check out past polls.