Data::Section::Pluggable::Plugin::Yaml - Data::Section::Pluggable Plugin for YAML
version 0.01
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
This plugin decodes YAML from __DATA__
. It only applies to filenames with the .yml
or .yaml
extension. Under the covers it uses YAML::XS.
Graham Ollis <plicease@cpan.org>
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.