Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 having an uproarious good time at the Monastery: (11)
As of 2014-09-02 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (29 votes), past polls