Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-Dumper CPAN distribution.

Report information
The Basics
Id: 21903
Status: new
Priority: 0/
Queue: Data-Dumper

People
Owner: Nobody in particular
Requestors: bohica [...] ntlworld.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.101
Fixed in: (no value)



Subject: Pure perl and XS version of Data::Dumper produce different output
Download (untitled) / with headers
text/plain 897b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.