Created
September 25, 2012 07:19
-
-
Save pokutuna/3780431 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use feature 'say'; | |
use JSON::PP qw(encode_json); | |
my $hash = { | |
num => 1 | |
}; | |
say encode_json($hash); # => {"num":1} | |
say "$hash->{num}"; # => 1 | |
say encode_json($hash); # => {"num":"1"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/3780488