Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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

by Anonymous Monk
on Feb 01, 2001 at 22:59 UTC ( #55792=categorized answer: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
[LanX]: marto: btw is Glasgow a safe place for yapc? heard it has one of the highest murder rates in western Europe
[LanX]: ... oh Amsterdam is worse. ..
[marto]: only when I'm bored
[LanX]: we should certainly avoid Amsterdam! ! !
[marto]: kidding. The area in question isn't great. I'd no idea these facilities existed in that part of town.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-12-14 15:40 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (396 votes). Check out past polls.