|
String::DiffLine - find the character,line, and line position of the first difference |
String::DiffLine - find the character,line, and line position of the first difference
use String::DiffLine qw(diffline);
($char,$line,$lpos)=diffline("abc","abx");
diffline($str1,$str2)If the strings are identical, the first element of the returned list is zero, the second element is the number of line separators plus one, and the last element is the number of characters following the last line separator.
Andrew Allen <andrew_d_allen@hotmail.com>
perl(1).
|
String::DiffLine - find the character,line, and line position of the first difference |