could be simplified tosystem("diff -q \"$File::Find::name\" \"$other_file\" > NU +L"); if($?) { print "$file is different\n"; }
Update: Added quotes around file name variables to handle file names with spaces in them (thanks ikegami).if(qx/diff -q "$File::Find::name" "$other_file"/) { print "$file is different\n"; }
In reply to Re: [Win] Compare files between two directories (and subdir)
by Arunbear
in thread [Win] Compare files between two directories (and subdir)
by jeepj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |