String::DiffLine - find the character,line, and line position of the first difference
use String::DiffLine qw(diffline); ($char,$line,$lpos)=diffline("abc","abx");
Returns a three-item list identifying the location of the first difference between the two strings: the character position (indexed from 0), the line number (indexed from 1), and the position in the line (indexed from 0). $/ is used as the line separator.
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).
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install String::DiffLine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::DiffLine
CPAN shell
perl -MCPAN -e shell install String::DiffLine
For more information on module installation, please visit the detailed CPAN module installation guide.