Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Multiple Library Includes

by hawtin (Prior)
on Jul 01, 2004 at 08:42 UTC ( #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
Node Status?
node history
Node Type: note [id://371014]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2020-07-09 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?