YAML::PP::Perl(3)
π YAML::PP::Perl β the manual page, but make it cute
okay so this is YAML::PP::Perl(3), a Perl module, and honestly? it's a vibe. it's the convenience module for loading and dumping Perl objects, and it's about to make your whole YAML situation so much easier π«Ά
β¨ NAME β¨
YAML::PP::Perl β convenience module for loading and dumping Perl objects π
like, that's literally it. it's the shortcut. the little bestie that does the setup for you.
πΈ SYNOPSIS πΈ
okay bestie, here's the whole thing, no cap:
use YAML::PP::Perl;
my @docs = YAML::PP::Perl->new->load_string($yaml);
my @docs = YAML::PP::Perl::Load($yaml);
# same as
use YAML::PP;
my $yp = YAML::PP->new( schema => [qw/ Core Perl /] );
my @docs = $yp->load_string($yaml);
see that # same as bit? that's the whole point π the first two lines are doing exactly what the last three lines do β they're just doing it without you having to write all that schema stuff yourself. icon behavior, honestly.
π¦ DESCRIPTION π¦
okay so this is just for convenience. like, that's the entire job description. it will create a YAML::PP object using the default schema (Core) and the YAML::PP::Schema::Perl schema. β¨
and if you want the actual details on what that Perl schema gets up to? go read YAML::PP::Schema::Perl, that's where all the documentation lives. this page is just the friendly front door πͺπ
π METHODS π
π Load, Dump, LoadFile, DumpFile
these work like the functions in YAML::PP, just adding the Perl schema. that's the only difference. same energy, extra schema. slay.
π new
the Constructor π works like in YAML::PP, just adds the Perl schema to the list of arguments. so you get all the usual new behavior, but with the Perl schema already queued up for you. no extra work, no stress, no notes π
bestie reminder: this module does not invent new behavior. everything here isYAML::PPplus thePerlschema. that's the whole tea β and it ate.
and that's the page!! written by the Perl documentation girlies, perl v5.42.0, dated 2026-04-24 β mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-YAML-PP 0.40.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms