Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: current directory

by ehdonhon (Curate)
on Jul 22, 2002 at 14:38 UTC ( [id://184073]=note: print w/replies, xml ) Need Help??


in reply to Re: current directory
in thread current directory

Yes, assuming:

  1. That you are using an operating system that populates $ENV{PWD} with the correct answer.
  2. That you haven't executed a chdir anywhere in your code.

Replies are listed 'Best First'.
•Re: Re: Re: current directory
by merlyn (Sage) on Jul 22, 2002 at 15:40 UTC
    1. That you are using an operating system that populates $ENV{PWD} with the correct answer.
    2. That you haven't executed a chdir anywhere in your code.
    You forgot:
    3. You aren't being lied to by the caller.
    since any program that trusts an env variable is a likely target for a security break-in.

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 10:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found