this gave me an idea: why not give ppl a way to compare N directories? :) here is the test code:
#!/usr/bin/perl -w use strict; use Cwd 'abs_path'; defined @ARGV and print sameDirectory(@ARGV),$/; sub sameDirectory { (-d) ? $_ = abs_path $_ : return -1 for @_; $_[0] ne $_ and return 0 for @_; 1; }
--
AltBlue.
In reply to Re: Re: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |