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

YAML::PP::Schema::YAML1_1 - YAML 1.1 Schema for YAML::PP

    use YAML::PP;
    my $yp = YAML::PP->new( schema => ['YAML1_1'] );
    my $yaml = <<'EOM';
    ---
    booltrue: [ true, True, TRUE, y, Y, yes, Yes, YES, on, On, ON ]
    EOM
    my $data = $yp->load_string($yaml);

This schema allows you to load the common YAML Types from YAML 1.1.

Called by YAML::PP::Schema

<https://yaml.org/type/null.html>
<https://yaml.org/type/float.html>
<https://yaml.org/type/int.html>
<https://yaml.org/type/bool.html>
2022-10-04 perl v5.34.0