Question

With Perl, what is an easy way to handle different development versus production libs paths? I want to use my local box path for testing, but when I launch I want it to automatically point to the production lib path.

Was it helpful?

Solution

Take a look at the PERL5LIB environment variable, or for an even easier time, look at local::lib.

OTHER TIPS

I think your dev box should really be a VM with an identical configuration to production, so you won't need to change the library path.

Libraries should be installed by the same mechanism so everything's consistent.

Not doing this is likely to risk you releasing non-working code to production due to library version differences.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top