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

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;


$writer->write('- ');



Gets called when the output ends.

Getter/setter for the YAML output
2022-11-12 perl v5.36.0