Scroll to navigation

Catmandu::Exporter::HTML(3pm) User Contributed Perl Documentation Catmandu::Exporter::HTML(3pm)

NAME

Catmandu::Exporter::HTML - a HTML exporter

SYNOPSIS

    # From the commandline
    $ catmandu convert HTML --fix myfixes to HTML < ex/test.html
    # From Perl
    use Catmandu;
    # Print to STDOUT
    my $exporter = Catmandu->exporter('HTML');
    $exporter->add_many($arrayref);
    $exporter->add_many($iterator);
    $exporter->add_many(sub { });
    $exporter->add($hashref);
    printf "exported %d objects\n" , $exporter->count;
    # Get an array ref of all records exported
    my $data = $exporter->as_arrayref;

DESCRIPTION

This is a Catmandu::Exporter for converting Perl into HTML.

SEE ALSO

Catmandu::Importer::LIDO, HTML::TokeParser

2023-02-11 perl v5.36.0