YAML::Dumper(3)
π YAML::Dumper π
okay bestie, so this is the YAML::Dumper page from the User Contributed Perl Documentation section of the manual (that's the (3) in the corner, iykyk). she's a whole module, she's here to dump your Perl objects into YAML, and she's literally so good at it. let's get into it π«Ά
β¨ NAME β¨
YAML::Dumper β it's giving YAML class, and what she does is dump Perl objects to YAML. no cap. that's the whole job. π
πΈ SYNOPSIS πΈ
here's the vibe, copy it exactly bestie:
use YAML::Dumper;
my $dumper = YAML::Dumper->new;
$dumper->indent_width(4);
print $dumper->dump({foo => 'bar'});
okay so like β you use the module, you make a new dumper with YAML::Dumper->new, you tell her indent_width(4) because we love a tidy four-space moment β¨, and then you dump your little {foo => 'bar'} hash and print it. iconic behaviour, honestly.
π¦ DESCRIPTION π¦
so YAML::Dumper is the module that YAML.pm used to serialize Perl objects to YAML. that's the lore. she's the one doing the heavy lifting behind the scenes.
and here's the part I'm obsessed with β she is fully object oriented π which means she doesn't need YAML.pm holding her hand. she's a strong independent module and she's usable on her own. main character energy fr fr. π
π AUTHOR π
this masterpiece was brought to you by Ingy dΓΆt Net <ingy@cpan.org>. legend behaviour. π
π COPYRIGHT π
okay so legal moment, but make it cute:
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. π«Ά
and if you wanna read the fine print, go look at <http://www.perl.com/perl/misc/Artistic.html> β she said read the license bestie, it's important.
and that's the whole page!! π no notes, she's perfect, she's a little icon.
perl v5.42.2 Β· 2026-07-27 Β· that's the source/version and date this page came from, so if you're citing her in your essay, that's the citation. bye bestie, go dump some YAML π β¨π¦
π¦ where this page comes from
- fedora 43: perl-YAML 1.32.1-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-YAML 1.32.1-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms