|Subject:||Pure perl and XS version of Data::Dumper produce different output|
DAta::Dumper perl only version returns a different serialised string to the XS version. I was actually using version 2.101.08 but I could not find this in the menu above. perl -MData::Dumper -le '$a = [1,"2"];print Dumper($a);' $VAR1 = [1,'2']; so Data::Dumper knows "2" is a string (XS version) and yet: perl -MData::Dumper -le ' $Data::Dumper::Useperl =1;$a = [1,"2"];print Dumper($a);' $VAR1 = [1,2]; just because I've switched to a Perl version of Data::Dumper "2" is a number. I don't know this causes a problem anywhere but I thought I'd report it and leave it to the maintainers of Data::Dumper to decide. I can see a problem can occur if Data::Dumper is used for data interchange and then the Perl object created from the serialised data is passed to another XS object since it will see numbers and strings differently if you switch from the pure perl to XS version of Data::Dumper.