fork download
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. use JSON qw();
  7.  
  8. package Foo;
  9.  
  10. sub new {
  11. }
  12.  
  13. sub TO_JSON {
  14. return new Foo;
  15. }
  16.  
  17. package main;
  18.  
  19. my $json = JSON->new()->convert_blessed(1)->pretty(1);
  20. #print $json->backend(), "\n";
  21. print $json->encode(new Foo);
Time limit exceeded #stdin #stdout 5s 3420672KB
stdin
Standard input is empty
stdout
Standard output is empty