Subject: | strings containing numbers are dumped as numbers |
strings containing numbers are dumped as numbers.
example:
code:
dd({ year => 2010, string => "1234" });
output:
{ string => 1234, year => 2010 }
expected output:
{ string => '1234', year => 2010 }
this is an big issue e.g. when debugging an mongodb find statement
because mongodb handles numbers and strings different.
ps: Data::Dumper and JSON::XS handle this case correct.