Andrew Moore writes ..

>On Fri, Apr 27, 2001 at 04:25:49PM -0400, Craig 
>Moynes/Markham/IBM wrote:
>> I cannot use a fixed library path as the script will be installed in
>> different directories on different systems.
>> 
>> the idea is it will be executed as:
>> /home/dbncc/perl/scripts/xxxx.pl
>> 
>> and the library will also be located in the same directory.
>
>Perhaps you can use:
>
>use lib ".";
>
>to include things in the current directory.


no .. you definitely cannot do that .. this will just be the user's concept
of the current directory .. so if the user is in '/foo' and the script is
'/bar/script.pl' then '.' will be '/foo'

that's precisely what you don't want

moreover .. '.' is already in @INC - Perl puts it there

-- 
  jason king

  In Georgia, you have the right to commit simple battery if provoked
  by "fighting" words. - http://dumblaws.com/

Reply via email to