sub sameDirectory { my ($s,$d) = @_; -d $s and $s = abs_path($s) or return -1 ; -d $d and $d = abs_path($d) or return -1 ; $s eq $d ? 1 : 0 ; }
--
AltBlue.
In reply to Re: Test to see if directories are the same
by AltBlue
in thread Test to see if directories are the same
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |