Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Answer: How do I get my script to see my modules?

by Shendal (Hermit)
on Aug 24, 2000 at 23:57 UTC ( #29532=categorized answer: print w/replies, xml ) Need Help??

Q&A > subroutines > How do I get my script to see my modules? - Answer contributed by Shendal

You don't want to modify @INC directly (that can break autoloading and/or architecture specific directories may not get added properly). It's much safer to do it this way:
use lib ('/path','/path/to/another/dir'); require 'foo.pl';
Hope that helps,
Shendal

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-06-23 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (552 votes). Check out past polls.