Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Production / Development on the same server.

by yosefm (Friar)
on Sep 06, 2003 at 15:03 UTC ( #289470=note: print w/ replies, xml ) Need Help??


in reply to Re: Production / Development on the same server.
in thread Production / Development on the same server.

This is what I do. what I want is to make scripts in /devel use modules in the devel modules dir, and scripts in /use_me_baby use modules in the production dir, without having to state the directory name, just the module version. I want the appropriate module to be automatically selected by perl, but require and use always select the first they see. I thought Acme::No would do the trick, but it just croaks when version is wrong.

Any way to do this?


Comment on Re: Re: Production / Development on the same server.
Re: Re: Re: Production / Development on the same server.
by dragonchild (Archbishop) on Sep 08, 2003 at 12:33 UTC
    If you have your directory trees be identical and the modules in some relative path from the scripts, you can have the same use lib statement and because it's running somewhere different, it'll go to a different relative path to find the modules.

    ------
    We are the carpenters and bricklayers of the Information Age.

    The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-08-20 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (125 votes), past polls