in reply to ADD directory to @INC using a string variable

How to add paths in @INC file I'm sure search may have turned up more...
  • Comment on Re: ADD directory to @INC using a string variable

Replies are listed 'Best First'.
Re^2: ADD directory to @INC using a string variable
by sid9559 (Novice) on Sep 23, 2013 at 15:27 UTC
    Thanks for your response but I want to use the path in a string variable. my $path = "/abc/xyz/bcd" use lib $path; it throws me the following error Empty compile time value given to use lib at CWD/filename.pm Thanks, Sid