in reply to Re: Is there a Perl version of UNIX "cmp" ?
in thread Is there a Perl version of UNIX "cmp" ?

Uh, you start with block A and block B in memory. Not sure how you think computing the MD5 on each block (hitting every byte, doing math) is going to be any faster than just comparing the blocks themselves (comparing byte by byte, but stopping on first difference). Bizarre.
  • Comment on Re^2: Is there a Perl version of UNIX "cmp" ?

Replies are listed 'Best First'.
Re^3: Is there a Perl version of UNIX "cmp" ?
by samtregar (Abbot) on Feb 07, 2009 at 05:13 UTC
    MD5 is magic! Ok, good point.

    -sam

      MD5 is not a general solution to compare two strings, but it can be useful to compare a string against many others. That's not needed here.