nrc has asked for the wisdom of the Perl Monks concerning the following question:
This doesn't work. The value "/mylib" is added to @INC. If I use -w it warns about concatenating an uninitalized value in the "use" line.$BASEDIR="/export/home/nrc"; use lib "$BASEDIR/mylib";
It seems like this is a scoping problem but what scope is the use lib pragma looking for and how do I assign it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "use lib" with variable
by japhy (Canon) on Nov 03, 2001 at 00:40 UTC | |
by nrc (Initiate) on Nov 03, 2001 at 00:49 UTC |