Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2016-09-30 01:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (562 votes). Check out past polls.