Scroll to navigation

YAML::PP::Writer(3) User Contributed Perl Documentation YAML::PP::Writer(3)

NAME

YAML::PP::Writer - Write YAML output

SYNOPSIS

    my $writer = YAML::PP::Writer->new;

DESCRIPTION

The YAML::PP::Emitter sends its output to the writer.

You can use your own writer. if you want to send the YAML output to somewhere else. See t/44.writer.t for an example.

METHODS

    my $writer = YAML::PP::Writer->new;
    

Constructor.

    $writer->write('- ');
    
    $writer->init;
    

Initialize

    $writer->finish;
    

Gets called when the output ends.

Getter/setter for the YAML output
2024-01-30 perl v5.38.2