Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 having an uproarious good time at the Monastery: (6)
As of 2016-02-10 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (343 votes), past polls