Skip to content

Instantly share code, notes, and snippets.

@dotandimet
Created October 24, 2010 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotandimet/643649 to your computer and use it in GitHub Desktop.
Save dotandimet/643649 to your computer and use it in GitHub Desktop.
why does decode hang in perl -d ?
#!/usr/bin/env perl
use strict;
use warnings;
use Mojo::JSON;
my $str = qq{[
{
"text" : "
Mojolicious
Duct Tape for The HTML5 Web
",
"label" : "intro",
"notes" : "introduce myself"
}
] };
my $arr = Mojo::JSON->new()->decode($str);
print $arr->[0]->{'text'};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment