in reply to perl can't find my modules

Sounds like there are actually two problems here... the oracle library has already been dealt with, so I'll just address the other one.

If you have modules installed in a non-standard place, the $PERL5LIB environment variable is your friend. When set, it will eliminate the need to put use lib '/somewhere/odd' in all of your scripts. Of course, it takes a little prep work to ensure that $PERL5LIB is always being set in whatever environment the script is being executed, but it will be well worth the time down the road.

-Blake

Replies are listed 'Best First'.
Re: Re: perl can't find my modules
by jepri (Parson) on Sep 07, 2001 at 23:42 UTC
    To be complete, a popular way to do this is to make a 'wrapper' for perl. Usually this is a shell script. Move perl out of the way, and replace it with a script similar to this:

    #!/bin/sh #Wrapper to set perl env variables export PERL5LIB=/path/to/modules /path/to/where/perl/really/is/perl

    Make sure the script is called perl and has the right permissions (chmod a=rx). This is a very convenient way to tweak the environment for scripts before they run.

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.