Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
XP is just a number
 
PerlMonks  

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

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

Q&A > subroutines > How do I get my script to see my modules? contributed by Anonymous Monk

If your modules are installed in a subdirectory of the location of your script, you can try the following:
use File::Basename; use lib dirname( $0 ); use MyModule;
Dave

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 making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-04-16 10:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (424 votes), past polls