Help for this page

Select Code to Download


  1. or download this
    sub h {
      tie my %hash, 'Tie::Hash::MultiValueOrdered';
    ...
      }
      \%hash;
    }
    
  2. or download this
    my $people = [
      h( name => "Alice", age => 21 ),
    ...
    ];
    
    print JSON::MultiValueOrdered->new(pretty=>1)->encode($people);