Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Figuring out the environment

by kelan (Deacon)
on Sep 25, 2002 at 16:40 UTC ( [id://200662]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-28 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found