1YAML::PP::Common(3)   User Contributed Perl Documentation  YAML::PP::Common(3)
2
3
4

NAME

6       YAML::PP::Common - Constants and common functions
7

SYNOPSIS

9           use YAML::PP::Common ':STYLES';
10           # or
11           use YAML::PP::Common qw/
12               YAML_ANY_SCALAR_STYLE YAML_PLAIN_SCALAR_STYLE
13               YAML_SINGLE_QUOTED_SCALAR_STYLE YAML_DOUBLE_QUOTED_SCALAR_STYLE
14               YAML_LITERAL_SCALAR_STYLE YAML_FOLDED_SCALAR_STYLE
15               YAML_QUOTED_SCALAR_STYLE
16
17               YAML_ANY_SEQUENCE_STYLE
18               YAML_BLOCK_SEQUENCE_STYLE YAML_FLOW_SEQUENCE_STYLE
19
20               YAML_ANY_MAPPING_STYLE
21               YAML_BLOCK_MAPPING_STYLE YAML_FLOW_MAPPING_STYLE
22           /;
23
24           use YAML::PP::Common ':PRESERVE';
25           # or
26           use YAML::PP::Common qw/
27               PRESERVE_ALL PRESERVE_ORDER PRESERVE_SCALAR_STYLE PRESERVE_FLOW_STYLE
28               PRESERVE_ALIAS
29           /:
30

DESCRIPTION

32       This module provides common constants and functions for modules working
33       with YAML::PP events.
34

FUNCTIONS

36       event_to_test_suite
37               my $string = YAML::PP::Common::event_to_test_suite($event_prom_parser);
38
39           For examples of the returned format look into this distributions's
40           directory "yaml-test-suite" which is a copy of
41           <https://github.com/yaml/yaml-test-suite>.
42
43       test_suite_to_event
44               my $event = YAML::PP::Common::test_suite_to_event($str);
45
46           Turns an event string in test suite format into an event hashref.
47           Not complete yet.
48
49
50
51perl v5.36.1                      2023-05-11               YAML::PP::Common(3)
Impressum