N
nan li
Hello,
I have a simple file below.
#t11.pl
use strict;
use warnings;
use Env qw(XYZ);
use lib "$XYZ";
I tried to set up the library path for perl. But I got the following
error.
Empty compile time value given to use lib at t11.pl line 5
t11.pl syntax OK
I guess the problem is that 'use lib' runs at compile time and $XYZ is
not available at that time. Is my guess correct? If so, is there any
good way I can do the same thing at run time ?
Thanks a lot.
I have a simple file below.
#t11.pl
use strict;
use warnings;
use Env qw(XYZ);
use lib "$XYZ";
I tried to set up the library path for perl. But I got the following
error.
Use of uninitialized value in string at t11.pl line 5.perl -c t11.pl
Empty compile time value given to use lib at t11.pl line 5
t11.pl syntax OK
I guess the problem is that 'use lib' runs at compile time and $XYZ is
not available at that time. Is my guess correct? If so, is there any
good way I can do the same thing at run time ?
Thanks a lot.