in reply to Re: convert a given dir name to its absolute path
in thread convert a given dir name to its absolute path
To clarify slightly, as this is subtle:
File::Spec->rel2abs tells you what the absolute path should be, whether the file/dir exists or not
abs_path tells you what the filesystem thinks the absolute path is, and the file/dir must exist for it to do so
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|