in reply to Using the %ENV hash with the lib module
as equivalent to:use Module LIST;
(which, if you read the use manpage, it is.)BEGIN { require Foo; import Module LIST; }
Your variable is getting set at runtime (it doesn't matter that it's in %ENV, that's just a coincidence). So you need to put it in a BEGIN block:
BEGIN { $ENV{'DTS_DIR'} = "/net/endeavor/users/DTS"; } use lib qq($ENV{'DTS_DIR'}/common);
|
|---|