nemesdani,
Actually, I am using that module, and unless I am missing something, when it's a directory the $_ will either contain the full path, or the directory name of the current directory. using my example above I would get a list like:
- DirD
- DirE
Enabling no_chdir => 1 will produce
- \\DirA\DirB\DirC\DirD
- \\DirA\DirB\DirC\DirD\DirE
Which I can then use the File::Spec->abs2rel and get \DirD\DirE
The reason I am after \DirD\DirE is I want to then append this to another base path to see if a file / directory exist in that location
|