Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
No such thing as a small change
 
PerlMonks  

Re: Answer: How do I find what dir the perl script is running from?

by Anonymous Monk
on Dec 29, 2000 at 19:29 UTC ( [id://48886]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: How do I find what dir the perl script is running from?
in thread How do I find what directory the perl script is running from?

Even better (for Unix), you can try one of the following...

$var = `/usr/bin/pwd`; # put the current dir in to $var

print `/usr/bin/pwd`; # print the cwd to STDOUT

  • Comment on Re: Answer: How do I find what dir the perl script is running from?

Replies are listed 'Best First'.
Re: Re: Answer: How do I find what dir the perl script is running from?
by Anonymous Monk on Sep 16, 2003 at 19:38 UTC
    this way you'll get dir the script is running _on_, and not the path script is running _from_

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://48886]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.