[Pdx-pm] string function

Tkil tkil at scrye.com
Tue Oct 28 19:10:43 CST 2003


>>>>> "Ward" == Ward Cunningham <ward at c2.com> writes:

Ward> I'm having trouble thinking of a good way to compare two strings
Ward> and find out where they differ.

Ward> There must be some slick way to do this without looking at each
Ward> individual character in a loop. What am I missing?

You're basically solving the problem that 'diff' solves:

   http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/lib/Algorithm/Diff.pm

t.



More information about the Pdx-pm-list mailing list