GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da65457
)
some PERL playing with JSON
author
Harvie
<tomas@mudrunka.cz>
Sun, 13 Jun 2010 22:30:27 +0000
(
00:30
+0200)
committer
Harvie
<tomas@mudrunka.cz>
Sun, 13 Jun 2010 22:30:27 +0000
(
00:30
+0200)
perl/map-reduce/recursive-json.pl
[new file with mode: 0755]
patch
|
blob
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.126134 seconds
and
4
git commands to generate.