in reply to Re: •Re: Directory in which your program is running...
in thread Directory in which your program is running...

Another way to do it:
use File::Basename; my $dir = dirname $0;
Or, if you are *sure* that you will only be running the scripts from the directory that they are in, you can specify relative paths starting from ".".

Replies are listed 'Best First'.
Re: Re: Re: •Re: Directory in which your program is running...
by theguvnor (Chaplain) on Jan 28, 2003 at 03:11 UTC

    Thanks - I eventually did use relative paths. I am sure to only be running the scripts from the directory in which they reside. I'm a team of 1, just with a couple/three machines I flop back and forth on. : )

    Jon