Hi
As we all know, we can use code such as 'use Cwd; $cwd = getcwd()' to
get current working path. If my current path is a soft link
/this/is/a/link pointing to /this/is/a/realpath, the function 'getcwd'
returns the resolved value of '/this/is/a/realpath'.
I know I can use environment variable '$ENV{PWD}' to get unresolved
value but it is unreliable because this environment variable might
already be changed by the parent process spawning perl. I wonder is
there any kind of official way to do this job?
Thanks in advance.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/