
hacksics
Novice
Dec 25, 2008, 8:53 AM
Post #1 of 9
(672 views)
|
Push paths to @INC array
|
Can't Post
|
|
Hi everyone, Is there any way to push a variable to @INC array in perl. I've noted if the full path is given then it accepts but a variable is given then it ignores, Ex:
push @INC, "/home/user_x/custom_libs"; # working my $LIB_PATH = "/home/user_x/custom_libs"; push @INC, $LIB_PATH; # not working Thanks,
|