in reply to Script to compare 2 folders, including sub folders and files with content
Hi karthik.raju,
Have a look at the "matches" option in File::DirCompare. For example, adding this option to your script works for me: matches => sub { print "File contents $_[0] and $_[1] are identical.\n" }
By the way, as the File::DirCompare documentation mentions, your script is essentially doing the same thing as diff: diff --recursive --brief --report-identical-files (or diff -rqs)
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Script to compare 2 folders, including sub folders and files with content
by karthik.raju (Acolyte) on Jul 04, 2016 at 07:19 UTC | |
by haukex (Archbishop) on Jul 04, 2016 at 07:30 UTC |