Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Data::Dumper turns floating points numbers into strings

by Hue-Bond (Priest)
on Jun 14, 2011 at 17:07 UTC ( [id://909619]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    use Data::Dumper;
    ...
    useperl: 1
    before: '{"qux":0.42,"foo":"bar"}'
    after:  '{"qux":0.42,"foo":"bar"}'
    
  2. or download this
    use JSON;
    my $json = JSON->new;
    for my $up (0, 1) {
    ...
    useperl: 1
    before: '{"qux":42,"foo":"bar"}'
    after:  '{"qux":42,"foo":"bar"}'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://909619]
Approved by sundialsvc4
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-26 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found