Subject: | HTML::Diff between '0' and '' returns the triplet ('-', '', '') |
Using HTML:Diff 0.55, running this simple test-script:
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use HTML::Diff;
my $left='0';
my $right='';
my $diffs=html_word_diff($left, $right);
print Dumper($left, $right, $diffs);
yields the output:
$VAR1 = '0';
$VAR2 = '';
$VAR3 = [
[
'-',
'',
''
]
];
I would expect the (deleted) zero to appear in the triplet?
I'm using perl 5.6.1 on a Debian/stable box.
Thanks for making HTML:Diff!
Adam.