in reply to Re: Re: Figuring out the environment
in thread Figuring out the environment

Do you know what OS the server is running? AFAIK, Microsoft OS's don't have an environment variable for the current directory. However, the Cwd module, which is one of the Perl core modules, provides a function called cwd which returns the current working directory.
use Cwd; $cwd = cwd(); print "My directory is $cwd\n";

kelan


Yak it up with Fullscreen ChatBox

Replies are listed 'Best First'.
Re: Re: Re: Re: Figuring out the environment
by Willman023 (Scribe) on Sep 25, 2002 at 17:14 UTC
    Thanks alot kelan! I wasn't including the Cwd module (use Cwd;) I now just need to change the directory to another server's folder (probably a chdir will do it), so that helped tremendously!