Skip to content

uperl/Data-Section-Pluggable-Plugin-Yaml

Repository files navigation

Data::Section::Pluggable::Plugin::Yaml static linux

Data::Section::Pluggable Plugin for YAML

SYNOPSIS

use Data::Section::Pluggable;

my $dsp = Data::Section::Pluggable->new
                                  ->add_plugin('yaml');

# prints "Welcome to Perl"
say $dsp->get_data_section('hello.yml')->{message};

__DATA__
@@ hello.yml
---
message: Welcome to Perl

DESCRIPTION

This plugin decodes YAML from __DATA__. It only applies to filenames with the .yml or .yaml extension. Under the covers it uses YAML::XS.

SEE ALSO

AUTHOR

Graham Ollis [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

Data::Section::Pluggable Plugin for YAML

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages