kgimpel has asked for the wisdom of the Perl Monks concerning the following question:
IE:
According to the file system, my working dir is here:
/base/path/to/a/
if I do a directory listing, I see:
file.txt
If you use the cwd module and check the abs_path of the file, you get
/mountpoint/base/path/linked/to/a/file.txt
(/base is a mountpoint; plus there is a symlink here /base/path/to -> /base/path/linked/to)
Now, of course, I may not actually be inside the directory that I'd like to work with; I might want to call this from "/base", with "path/to/a" as an argument. Can anyone suggest a way for me to report the "unreal" absolute path that would look like this?
/some/base/path/to/a/file.txt
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unreal absolute path
by zentara (Cardinal) on Nov 28, 2004 at 12:31 UTC | |
|
Re: unreal absolute path
by gaal (Parson) on Nov 28, 2004 at 08:26 UTC | |
|
Re: unreal absolute path
by ikegami (Patriarch) on Nov 28, 2004 at 07:29 UTC | |
by kgimpel (Acolyte) on Nov 28, 2004 at 07:46 UTC | |
by ikegami (Patriarch) on Nov 28, 2004 at 08:11 UTC | |
|
Re: unreal absolute path
by ysth (Canon) on Nov 28, 2004 at 10:29 UTC |