GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
some PERL playing with JSON
[mirrors/Programs.git]
/
perl
/
map-reduce
/
recursive-json.pl
diff --git a/perl/map-reduce/recursive-json.pl
b/perl/map-reduce/recursive-json.pl
new file mode 100755
(executable)
index 0000000..
8c57d00
--- /dev/null
+++ b/
perl/map-reduce/recursive-json.pl
@@ -0,0
+1,12
@@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+
+use JSON;
+use Data::Dumper;
+
+my $a={a=>{f=>"",b=>""},b=>{f=>"",b=>""}};
+$a->{"b"}=$a;
+
+print Dumper($a);
+print encode_json($a)."\n"
This page took
0.096911 seconds
and
4
git commands to generate.