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

Re: Load module from local dir

by Corion (Patriarch)
on Sep 24, 2018 at 18:11 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-18 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found