1YAML::PP::Writer::File(U3s)er Contributed Perl DocumentatYiAoMnL::PP::Writer::File(3)
2
3
4

NAME

6       YAML::PP::Writer::File - Write YAML output to file or file handle
7

SYNOPSIS

9           my $writer = YAML::PP::Writer::File->new(output => $file);
10

DESCRIPTION

12       The YAML::PP::Emitter sends its output to the writer.
13
14       You can use your own writer. if you want to send the YAML output to
15       somewhere else. See t/44.writer.t for an example.
16

METHODS

18       new
19               my $writer = YAML::PP::Writer::File->new(output => $file);
20               my $writer = YAML::PP::Writer::File->new(output => $filehandle);
21
22           Constructor.
23
24       write
25               $writer->write('- ');
26
27       init
28               $writer->init;
29
30           Initialize
31
32       finish
33               $writer->finish;
34
35           Gets called when the output ends. If The argument was a filename,
36           the filehandle will be closed. If the argument was a filehandle,
37           the caller needs to close it.
38
39       output, set_output
40           Getter/setter for the YAML output
41
42
43
44perl v5.36.1                      2023-05-11         YAML::PP::Writer::File(3)
Impressum