Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Load module from local dir

by Corion (Patriarch)
on Sep 24, 2018 at 18:11 UTC ( #1222926=note: print w/replies, xml ) Need Help??


in reply to Load module from local dir

I don't think that Perl will expand ~ to mean /home/anonymous_monk/, so you will have to do this expansion yourself:

use lib '/home/anonymous_monk/perl5/lib/perl5';

Alternatively see perlrun on how to set up @INC from the commandline:

export PERL5LIB=~/perl5/lib/perl5

Also, see the local::lib documentation on how to really set up local::lib. There are some steps you need to perform after installing it to get things set up.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1222926]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2022-01-23 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?