RE: How to use a module located relative to the current script

2002-10-20 Thread Reinstein, Shlomo
hanks for your answer. Shlomo -Original Message- From: Michael Fowler [mailto:michael@;shoebox.net] Sent: Thursday, October 17, 2002 11:59 PM To: Reinstein, Shlomo Cc: '[EMAIL PROTECTED]' Subject: Re: How to use a module located relative to the current script On Wed, Oct 16,

Re: How to use a module located relative to the current script

2002-10-18 Thread david
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".

Re: How to use a module located relative to the current script

2002-10-18 Thread Michael Fowler
On Wed, Oct 16, 2002 at 05:05:09PM +0200, Reinstein, Shlomo wrote: > Is there a way that I can say in "sos.pl" that I want to use the module > located in "../modules" relative to it? I've read through this thread and it sounds like you're trying to solve the wrong problem, or perhaps going at it t

RE: How to use a module located relative to the current script

2002-10-18 Thread NYIMI Jose (BMB)
here was an error > and it didn't enter the debugger). > > Shlomo > > -Original Message- > From: Jenda Krynicky [mailto:Jenda@;Krynicky.cz] > Sent: Wednesday, October 16, 2002 8:07 PM > To: Reinstein, Shlomo; [EMAIL PROTECTED] > Subject: RE: How to use a mo

RE: How to use a module located relative to the current script

2002-10-17 Thread Reinstein, Shlomo
07 PM To: Reinstein, Shlomo; [EMAIL PROTECTED] Subject: RE: How to use a module located relative to the current script From: "Reinstein, Shlomo" <[EMAIL PROTECTED]> > Thanks. However, I think this module won't help me. You see, > "some_path/lib/sos.

RE: How to use a module located relative to the current script

2002-10-17 Thread Reinstein, Shlomo
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

Re: How to use a module located relative to the current script

2002-10-16 Thread Rakhitha Malinda Karunarathne
filepath"; }else{print "cant locate file $file_to_search"; } - Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: "Reinstein, Shlomo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 17,

RE: How to use a module located relative to the current script

2002-10-16 Thread Jenda Krynicky
From: "Reinstein, Shlomo" <[EMAIL PROTECTED]> > Thanks. However, I think this module won't help me. You see, > "some_path/lib/sos.pl" is not the "original" (bin) script, but rather > it's a library of routines used by many "original" scripts. That is to > say, users don't run "pe

RE: How to use a module located relative to the current script

2002-10-16 Thread Reinstein, Shlomo
s.pl", but rather they run some other script which knows how to locate and require sos.pl. Shlomo -Original Message- From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 6:10 PM To: Reinstein, Shlomo; [EMAIL PROTECTED] Subject: RE: How to use a module loca

Re: How to use a module located relative to the current script

2002-10-16 Thread James Edward Gray II
I stand corrected. My apologies. James On Wednesday, October 16, 2002, at 11:10 AM, Jenda Krynicky wrote: > From: James Edward Gray II <[EMAIL PROTECTED]> > >> use Path::To::Module; > > Beg::Your::Pardon? > > 1) this will not help him. This'll cause perl to search for Module.pm > in all Path/

RE: How to use a module located relative to the current script

2002-10-16 Thread NYIMI Jose (BMB)
Use FindBin module. The advantage is that FindBin module belongs to standard distribution Your "some_path"/lib/sos.pl script will look like: #!/usr/bin/perl -w use strict; use FindBin qw($Bin) # so $Bin contains your "some_path"/lib #from here TMTWOTDI, one way is to pick up "some_path" from $Bi

Re: How to use a module located relative to the current script

2002-10-16 Thread Jenda Krynicky
From: James Edward Gray II <[EMAIL PROTECTED]> > use Path::To::Module; Beg::Your::Pardon? 1) this will not help him. This'll cause perl to search for Module.pm in all Path/To subdirectories of directories in @INC. But he needs to add something to @INC. 2) If you do this the module will most

RE: How to use a module located relative to the current script

2002-10-16 Thread NYIMI Jose (BMB)
Use FindBin module. The advantage is that FindBin module belongs to standard distribution Your "some_path"/lib/sos.pl script will look like: #!/usr/bin/perl -w use strict; use FindBin qw($Bin) # so $Bin contains your "some_path"/lib #from here TMTWOTDI, one way is to pick up "some_path" from $Bi

Re: How to use a module located relative to the current script

2002-10-16 Thread James Edward Gray II
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",