Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: ADD directory to @INC using a string variable

by Laurent_R (Abbot)
on Sep 23, 2013 at 15:54 UTC ( #1055324=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055324]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-09-25 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (278 votes). Check out past polls.

    Notices?