in reply to Conditional use of 'use'

Try       use lib xxx;

It will change search directory.

How to do that: All programs will contain line

use lib_config;

You will create two copies of file lib_config.pm.

In production, file lib_config.pm will contain:       use lib prod;,

but in development it will contain       use lib devel;

This way, you can copy a program from devel to prod without any changes. lib_config.pm will contain differences.

Hope this helps and I understood you properly.

pmas

To make errors is human. But to make million errors per second, you need a computer.