#!/home/ben/software/install/bin/perl
use Z;
use MetaCPAN::Client;
use JSON::Create 'create_json';
use Perl::Build::Pod ':all';
# Read the file in & extract the section
my $text = see_also ("$Bin/l
info{fav} = $fav->total ();
push @modules, \%info;
}
};
if ($@) {
print "error: $@";
}
my $mtext = create_json (\@modules, sort => 1, indent => 1);
write_text ("see-also-info.json", $mtext);
r-list/index.html>.
=head3 JSON to HTML
This script converts arbitrary JSON to HTML:
use utf8;
use JSON::Parse 'parse_json';
use HTML::Make;
my $json =<<EOF;
{"words":[{"j_
ンプリムント"}]}
EOF
my $p = parse_json ($json);
my $html = json_to_html ($p);
print $html->text ();
exit;
sub json_to_html
{
my ($input) = @_;
m
for my $k (@$input) {
my $li = $element->push ('li');
$li->push (json_to_html ($k));
}
}
elsif (ref $input eq 'HASH') {
$elemen
e HTML::Valid::Tagset ':all';
use JSON::Parse '0.62', 'read_json';
my $dir = __FILE__;
$dir =~ s/Make\.pm/Make/;
my $infofile = "$dir/info.json";
my $info = read_json ($infofile);
# This is a list o