---
name: "YAML::Dumper"
section: "3pm"
platform: "linux"
package: "perl-yaml"
version: "1.321-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/YAML::Dumper"
---

# YAML::Dumper(3pm)

YAML class for dumping Perl objects to YAML

## NAME

YAML::Dumper - YAML class for dumping Perl objects to YAML

## SYNOPSIS

```
    use YAML::Dumper;
    my $dumper = YAML::Dumper->new;
    $dumper->indent_width(4);
    print $dumper->dump({foo => 'bar'});
```

## DESCRIPTION

YAML::Dumper 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 döt Net \<ingy@cpan.org\>

## COPYRIGHT

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.

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