On Jul 15, Ted Behling said:

>$DEV_OR_PROD = 'dev';
>$LIB_LOC = "path/" . $DEV_OR_PROD . "/lib";
>print $LIB_LOC . "\n";
>require 'file-to-include.pl';

Those four happen at RUN-TIME.

>use lib "/foo/$LIB_LOC/bar";

That one happens at COMPILE-TIME, before $LIB_LOC has a chance to be
defined.  Perhaps you should try:

  BEGIN {
    $DEV_OR_PROD = 'dev';
    $LIB_LOC = "path/" . $DEV_OR_PROD . "/lib";
  }

  use lib "/foo/$LIB_LOC/bar";

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
**      Manning Publications, Co, is publishing my Perl Regex book      **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to