Scroll to navigation

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

NAME

Catmandu::Exporter::YAML - a YAML exporter

SYNOPSIS

    use Catmandu::Exporter::YAML;
    # Print to STDOUT
    my $exporter = Catmandu::Exporter::YAML->new(fix => 'myfix.txt');
    # Print to file or IO::Handle
    my $exporter = Catmandu::Exporter::YAML->new(file => '/tmp/out.yml');
    my $exporter = Catmandu::Exporter::YAML->new(file => $fh);
    $exporter->add_many($arrayref);
    $exporter->add_many($iterator);
    $exporter->add_many(sub { });
    $exporter->add($hashref);
    printf "exported %d objects\n" , $exporter->count;

SEE ALSO

Catmandu::Exporter
2014-10-14 perl v5.20.1