YAML::PP::Perl - Convenience module for loading and dumping Perl objects
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);
This is just for convenience. It will create a YAML::PP object using the default schema (Core) and the YAML::PP::Schema::Perl schema.
Core
See YAML::PP::Schema::Perl for documentation.
These work like the functions in YAML::PP, just adding the Perl schema.
Perl
Constructor, works like in YAML::PP, just adds the Perl schema to the list of arguments.
To install YAML::PP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YAML::PP
CPAN shell
perl -MCPAN -e shell install YAML::PP
For more information on module installation, please visit the detailed CPAN module installation guide.