Thanks.
Didn't know about PERL5LIB but when it looked it up in the Cookbook its the perfect &
easy solution.
I just put
export PERL5LIB=$RGSE/lib
into my .bashrc file and now there is no longer a need to use:
perl -I${RGSE}/lib myprogram.pl
to run the program. I can just do:
myprogram.pl
instead.
It does seem that:
use Env qw(RGSE);
use lib "$ENV{RGSE}/lib";
should also work though. Works fine as a 2 line program, as Bob Showalter suggested.
So for whatever reason, $ENV{RGSE} is not properly defined in my more complex program.
Some debugging to do if I want to use that method!
*********************************************************************
This e-mail message, and any files transmitted with it, are
confidential and intended solely for the use of the addressee. If
this message was not addressed to you, you have received it in error
and any copying, distribution or other use of any part of it is
strictly prohibited. Any views or opinions presented are solely those
of the sender and do not necessarily represent those of the British
Geological Survey. The security of e-mail communication cannot be
guaranteed and the BGS accepts no liability for claims arising as a
result of the use of this medium to transmit messages from or to the
BGS. . http://www.bgs.ac.uk
*********************************************************************
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>