# phpman > info > YAML::Dumper

YAML::[Dumper(3pm)](https://www.chedong.com/phpMan.php/man/Dumper/3pm/markdown)     User Contributed Perl Documentation    YAML::[Dumper(3pm)](https://www.chedong.com/phpMan.php/man/Dumper/3pm/markdown)

NAME
       [YAML::Dumper](https://www.chedong.com/phpMan.php/perldoc/YAML%3A%3ADumper/markdown) - YAML class for dumping Perl objects to YAML

SYNOPSIS
           use [YAML::Dumper](https://www.chedong.com/phpMan.php/perldoc/YAML%3A%3ADumper/markdown);
           my $dumper = [YAML::Dumper](https://www.chedong.com/phpMan.php/perldoc/YAML%3A%3ADumper/markdown)->new;
           $dumper->[indent_width(4)](https://www.chedong.com/phpMan.php/man/indentwidth/4/markdown);
           print $dumper->dump({foo => 'bar'});

DESCRIPTION
       [YAML::Dumper](https://www.chedong.com/phpMan.php/perldoc/YAML%3A%3ADumper/markdown) is the module that YAML.pm used to serialize Perl objects
       to YAML. It is fully object oriented and usable on its own.

AUTHOR
       Ingy dot Net <<ingy@cpan.org>>

COPYRIGHT
       Copyright 2001-2014. Ingy dot Net

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

       See <<http://www.perl.com/perl/misc/Artistic.html>>

perl v5.30.0                      2020-01-29                 YAML::[Dumper(3pm)](https://www.chedong.com/phpMan.php/man/Dumper/3pm/markdown)
