in reply to Re: ADD directory to @INC using a string variable
in thread ADD directory to @INC using a string variable

I cannot use a hardcoded path, it is a varying path based on the user. $path = user's cwd/somepath/filename.pm Regards, Siddharth
  • Comment on Re^2: ADD directory to @INC using a string variable

Replies are listed 'Best First'.
Re^3: ADD directory to @INC using a string variable
by Anonymous Monk on Sep 23, 2013 at 16:30 UTC
    use lib './somepath/';
    or
    BEGIN { my $path = 'somepath'; push @INC, $path; }
    or why not just let the user set his/her PERL5LIB environment variable?