Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by yosefm (Friar)
on Sep 06, 2003 at 15:03 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://289470]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found