in reply to Generic compare script.

You can try File::Compare.

But I myself also did something for the same purpose, and what I did was simply use DOS fc command to compare files. I also use File::Glob to get the list of files in particular directory, then loop through each file and execute fc through system(). The results can be captured through redirection:

perl -w blah.pl > result

Replies are listed 'Best First'.
Re^2: Generic compare script.
by TeraMarv (Beadle) on Oct 12, 2005 at 04:51 UTC
    I have used File::Compare in the past but it doesn't exactly do the job here. I have files on remote machines...I don't want to have ftp them both to the local machine.

    I was thinking of telneting into the remote machines and running the following:

    perl -MFile::Find -e "find(sub{print qq($File::Find::name\n);},q($path))"

    and capturing the output to get my list of files.

    Then using telnet again to 'cat' the files and capturing the output from both machine and comparing that....which I suppose is just like using ftp in the end.

      There must be a better way!!!!!?