Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: ADD directory to @INC using a string variable

by Laurent_R (Parson)
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.


Comment on Re: ADD directory to @INC using a string variable
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2014-09-17 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (72 votes), past polls