Personally I wouldn't use Perl for this task unless it was something I knew I'd need to repeat over and over again. For a one-off comparison, I'd just use:
find -type f | sort > file-list.txt
... on each host to generate a lexically sorted list of files, and then compare the two lists using diff.
In reply to Re: Comparing an array against another array
by tobyink
in thread Comparing an array against another array
by jaldama
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |