Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Multiple Library Includes

by hawtin (Prior)
on Jul 01, 2004 at 08:42 UTC ( [id://371014]=note: print w/replies, xml ) Need Help??


in reply to Multiple Library Includes

I think that setting $PERL5LIB will do what you want, add the following to your profile (.login/ .tcshrc or whatever):

setenv PERL5LIB /usr/local/lib:/app/common/cpan:/app/subapp/cpan

Alternately you can pass -I flags (for example by editing the shebang line in your scripts).

And finally you can modify @INC in the scripts before calling require:

push(@INC,"/app/subapp/cpan"); require Module97;

If you can recompile and reinstall Perl that solution is a good idea, but if not there is more than one way to do it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found