DOKK / manpages / debian 12 / libyaml-pp-perl / YAML::PP::Writer.3pm.en
YAML::PP::Writer(3pm) User Contributed Perl Documentation YAML::PP::Writer(3pm)

YAML::PP::Writer - Write YAML output

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

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.

    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
2022-10-04 perl v5.34.0