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.
-----------------------------------------
Craig Moynes
Internship Student
netCC Development
IBM Global Services, Canada
Tel: (905) 316-3486
[EMAIL PROTECTED]
kimball@stsci.
edu (Timothy To: [EMAIL PROTECTED]
Kimball) cc:
Subject: Re: Include directory as
location of perl script
04/27/01 04:22
PM
Please respond
to kimball
: but I am having trouble stripping $0 of the perl script name.
The standard File::Basename module has a dirname() function
that will do that for you.
Alternatively, you can say something like this in your perl script:
use lib '/path/to/your/module/file.pm';
-- tdk