in reply to Multiple Versions of Perl
I've done something similar to house multiple development and testing environments on the same server.
UPDATE: Limbic~Region was kind enough to point out that it may exist in both environements if you set @INC to include your "development" include directory.
Taking his idea one step further (I think he was hinting at this in his message to me): set @INC to reference a local environment variable that points to your "current" directory structure of includes. That way, you set an environment variable before execution, and never have to change the actual script as you migrate from env to env. The one major drawback to this approach that I can see is security. If someone can change the environment variable, they could overload the @INC to include potentially malicious modules.
Thoughts? Rebuttal?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multiple Versions of Perl
by Limbic~Region (Chancellor) on Sep 07, 2004 at 20:14 UTC |