in reply to Re: @INC: search sequence of directories
in thread @INC: search sequence of directories

Is it of any significance that you use the variable PER5LIB?
In my bash script I create an environment variable PERLLIBDIR and in the perl script I refer to it by %ENV{PERLLIBDIR}
  • Comment on Re^2: @INC: search sequence of directories

Replies are listed 'Best First'.
Re^3: @INC: search sequence of directories
by almut (Canon) on Apr 25, 2007 at 13:15 UTC

    yes, PERL5LIB is a special env variable for just that purpose :)

    In case you'd rather make use of PERLLIBDIR, something like use lib split /:/, $ENV{PERLLIBDIR}; in your script should work as well.

    (I suppose the '%' in %ENV{...} was just a typo...)

      Thank you.
      That clarified a couple of things.