Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

( #29532=categorized answer: print w/ replies, xml ) Need Help??

Q&A > subroutines > How do I get my script to see my modules? 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

Comment on Answer: How do I get my script to see my modules?
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-09-30 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (378 votes), past polls