Skip to content

Instantly share code, notes, and snippets.

@tobyink
Created January 17, 2013 14:03
Show Gist options
  • Select an option

  • Save tobyink/4556112 to your computer and use it in GitHub Desktop.

Select an option

Save tobyink/4556112 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use JSON;
my $a = [1,2,3];
my $b = {a => $a};
push @$a, $b;
print to_json $a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment