|
the code used to count "\n" characters uses a substr incorrectly; it assumed that the third parameter in substr was a "to" count instead of a length:
In LineNumbers.pm line 81, change
$linenum += ( substr($_, $last_pos, $new_pos) =~ tr[\n][] );
to
$linenum += ( substr($_, $last_pos, $new_pos - $lastpos) =~ tr[\n][] );
|