On Thursday 13 September 2001 18:26, Dan Sugalski wrote:
> At 10:21 AM 9/13/2001 -0600, Nathan Torkington wrote:
> >Dan Sugalski writes:
> > > >Lines 249 to 261 seem to duplicate 204 to 216.
> > >
> > > D'oh! Thanks, fixed.
> >
> >Oh man, good luck building a unit testing system for the docs :-)
>
> That's actually an interesting thing to consider. We could check for
> duplicate headers (=item, =head1, =head2, =head3), run MD5 checksums on
> paragraphs, and other mildly interesting things.
Will do that next if still considered to be a good thing :-)
What else to check?
> Anyone care to take a shot at it? I hear there's a good text-processing
> language on the net somewhere we could grab and use... ;-)
This should spit out the longest duplicate string in a file
and give its byte positions in that file.
Buggs
longdup.pl