Thanks!
Edit: I tried this with:
#!/usr/bin/perluse Text::Diff;
$one="Smart";
$two="Poptart";$diff = diff \$one, \$two;
print $diff;
but all it returned was:
@@ -1 +1 @@
CHG 0,3 "Popt"
or something that let the program call it later and reapply it to the string, like this:
$string1="blah";
$string1="sarah";
$joe=diff($string1, $string2);
# save $joe to a file then recall contents as $sam
$newspl = appl($sam, $string1);
# $newspl is "sarah"