Ned Konz wrote:
> 
> "Ian D. Stewart" wrote:
> >
> > Frank Merrow wrote:
> > >
> > > I am told there is a File::Compare module that will compare two files.
> > >
> > > A ppm search didn't show anything useful under "file" or "compare".
> > >
> > > Before I system("cmp $f1 $f2), does anyone know where to find this beast?
> >
> > Try looking for Algorithm::Diff, or you can get the native equivelant,
> > diff.exe, from MingW32.
> 
> If you just want to see if two files are different, DO NOT use
> Algorithm::Diff.
> For one thing, the one by MJD on CPAN is horrible with respect to memory
> usage,
> using about 600 MB (!) to compare two 4000-line text files.

Whoa!  I've never actually used the module.  Assumed it compared
favorably to GNU Diff (my mistake for making that assumption).

> 
> I've re-written it (and can provide it if anyone wants), 

If the CPAN version is that bad, perhaps you should make your version
(or at least a patch) public,

> but it still
> isn't
> the right thing to use for just seeing if two files are the same.

For testing for similiarity, no it's not.  However, for comparing files
(i.e., seeing HOW they are different, not IF) it is.  Though given the
above performance hit, I would definately go with GNU Diff.


Ian


-- 
99 little bugs in the code, 99 bugs in the code.
Fix one bug, compile again, 100 little bugs in the code.
100 little bugs in the code, 100 bugs in the code.
Fix one bug, compile again, 101 little bugs in the code...

---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to