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

Assuming you are on some form of Un*x, can you use something like this:

use lib '~/some_path/';

BTW, the argument after lib should be a path.

Replies are listed 'Best First'.
Re^2: ADD directory to @INC using a string variable
by sid9559 (Novice) on Sep 23, 2013 at 17:59 UTC
    can I use a string variable instead ?? something like use lib $path Regards, Siddharth