CGI::Application::Plugin::YAML is a Perl module that acts as a wrapper around YAML::Any. It uses YAML::Any so looks for the best YAML module your system has to offer. There are Pure Perl YAML modules (such as YAML::Old) that you can easily package with your app. If like me you didn't like the idea of having functions called Dump and Load imported to your namespace, then I'd use this wapper.
Just a little wrapper. Useful to add YAML methods to you CGI::App object. The whole YAML module is lazy loaded, so all that gets loaded at first is this little wrapper.
use CGI::Application::Plugin::YAML qw( :std );
$self->YAML->Load( $yamldata );
$self->YAML->Dump( $perldata );
The methods LoadFile and DumpFile can also be imported. You need to specify :max on your use.
use CGI::Application::Plugin::YAML qw( :all );
Load YAML file:-
$self->YAML->LoadFile( $yamldata );
Dump YAML file:-
$self->YAML->DumpFile( $perldata );