I have a simple routine that uses cwd to get the physical path and it works fine when the files being referred to are in or under that directory. But to make it fully dynamic when some data or other files are outside that directory and need a hard-coded path, how I can take the variable for the path and make it "back up" and give another variable for the new path? Is it possible? Here's the basic cwd code as it is now. This is a Linux server. Thanks!
Don
[tt]
if ($] >= 5) {
use Cwd;
$cwd = getcwd();
} else {
print "<B>Your version of Perl needs getcwd.pl library to obtain the
current working directory. We will \"require\" it now.</B><P>";
require "getcwd.pl";
$cwd = getcwd();
}
[/tt]
Don
[tt]
if ($] >= 5) {
use Cwd;
$cwd = getcwd();
} else {
print "<B>Your version of Perl needs getcwd.pl library to obtain the
current working directory. We will \"require\" it now.</B><P>";
require "getcwd.pl";
$cwd = getcwd();
}
[/tt]