logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

YAML::PP::Perl - Convenience module for loading and dumping Perl objects

Description

       This is just for convenience. It will create a YAML::PP object using the default schema ("Core") and the
       YAML::PP::Schema::Perl schema.

       See YAML::PP::Schema::Perl for documentation.

Methods

       Load, Dump, LoadFile, DumpFile
           These work like the functions in YAML::PP, just adding the "Perl" schema.

       new Constructor, works like in YAML::PP, just adds the "Perl" schema to the list of arguments.

perl v5.40.0                                       2025-02-15                                YAML::PP::Perl(3pm)

Name

       YAML::PP::Perl - Convenience module for loading and dumping Perl objects

Synopsis

           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 Also