Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 meditating upon the Monastery: (6)
As of 2015-07-04 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls