Shlomo Reinstein wrote: > Hi, > From some perl script, say "some_path/lib/sos.pl", I would like to make > use of a perl module, which is located at "some_path/modules". I don't > know what "some_path" is inside "sos.pl", but I know that I can reach the > module using a relative path "../modules". The problem is, writing "use > lib '../modules'" treats the path as a relative path to the current > directory, and not to the directory of "sos.pl" (if I understood > correctly). Is there a way that I can say in "sos.pl" that I want to use > the module located in "../modules" relative to it? > Thanks, > Shlomo
in your sos.pl, try put: use FindBin; use lib "$FindBin::Bin/../modules"; use <module in ../modules dirctory that you want to use> now no matter where you execute sos.pl, it's will always be able to find the ../modules david -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]