How do I use Path::To::Module if I don't know Path?
-----Original Message----- From: James Edward Gray II [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 5:54 PM To: Reinstein, Shlomo Cc: '[EMAIL PROTECTED]' Subject: Re: How to use a module located relative to the current script use Path::To::Module; On Wednesday, October 16, 2002, at 10:05 AM, Reinstein, Shlomo 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 > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]