some PERL playing with JSON
authorHarvie <tomas@mudrunka.cz>
Sun, 13 Jun 2010 22:30:27 +0000 (00:30 +0200)
committerHarvie <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]

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
@@ -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.