YAML::Loader - YAML class for loading Perl objects to YAML
| Use Case | Command | Description |
|---|---|---|
| π Deserialize YAML to Perl | use YAML::Loader; my $loader = YAML::Loader->new; my $hash = $loader->load($yaml_string); |
Load a YAML string into a Perl hashref using the object-oriented interface. |
| π Load from a file handle | my $loader = YAML::Loader->new; my $hash = $loader->load($fh); |
Pass a filehandle to the load method to read YAML directly from a file. |
use YAML::Loader;
my $loader = YAML::Loader->new;
my $hash = $loader->load(<<'...');
foo: bar
...
YAML::Loader is the module that YAML.pm used to deserialize YAML to Perl objects. It is fully object oriented and usable on its own.
Ingy dΓΆt Net <ingy AT cpan.org>
Copyright 2001-2014. Ingy dΓΆt Net
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-21 19:25 @216.73.217.134
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)