1YAML::Dumper(3) User Contributed Perl Documentation YAML::Dumper(3)
2
3
4
6 YAML::Dumper - YAML class for dumping Perl objects to YAML
7
9 use YAML::Dumper;
10 my $dumper = YAML::Dumper->new;
11 $dumper->indent_width(4);
12 print $dumper->dump({foo => 'bar'});
13
15 YAML::Dumper is the module that YAML.pm used to serialize Perl objects
16 to YAML. It is fully object oriented and usable on its own.
17
19 Ingy doet Net <ingy@cpan.org>
20
22 Copyright (c) 2006, 2011-2012. Ingy doet Net. All rights reserved.
23
24 This program is free software; you can redistribute it and/or modify it
25 under the same terms as Perl itself.
26
27 See <http://www.perl.com/perl/misc/Artistic.html>
28
30 Hey! The above document had some coding errors, which are explained
31 below:
32
33 Around line 578:
34 Non-ASCII character seen before =encoding in 'doet'. Assuming UTF-8
35
36
37
38perl v5.16.3 2012-07-13 YAML::Dumper(3)