Thanks a lot guys, i will pursue the headsup . Basically my intention is not to simulate diff -r in Perl, rather the contents of the file bit-by-bit. Thanks once again.
But that's what 'diff -r' does: compares the contents of two directory structures and reports any differences between the files, or files in one structure that are missing in the other. If you just want to know what files are different, without seeing the lines on which they are different, add the '-q' or '--brief' option.