perl, how to compare file contents from one folder to another

There are 3 files in dir1.  I want to check if the 3 files are the same in dir2, so the three files exist in dir2 and have the same exact content.  Note, dir2 may have other files.
rgbcofAsked:
Who is Participating?
 
Ryan WeaverConnect With a Mentor Infrastructure ManagerCommented:
You could use the File::Dircmp module to find the file name differences and combine that with File::Compare to check the files of the same name.
0
 
tel2Commented:
How about a recursive diff:
    diff -r dir1 dir2
0
 
rgbcofAuthor Commented:
Fryguy,

Thanks for the tip.
0
All Courses

From novice to tech pro — start learning today.