1NAME 2 Data::Dump - Pretty printing of data structures 3 4SYNOPSIS 5 use Data::Dump qw(dump ddx); 6 7 $str = dump(@list); 8 @copy_of_list = eval $str; 9 10 # or use it for easy debug printout 11 ddx localtime; 12 13DESCRIPTION 14 This module provide functions that takes a list of values as their 15 argument and produces a string as its result. The string contains Perl 16 code that, when "eval"ed, produces a deep copy of the original 17 arguments. 18 19 The main feature of the module is that it strives to produce output that 20 is easy to read. Example: 21 22 @a = (1, [2, 3], {4 => 5}); 23 dump(@a); 24 25 Produces: 26 27 (1, [2, 3], { 4 => 5 }) 28 29 If you dump just a little data, it is output on a single line. If you 30 dump data that is more complex or there is a lot of it, line breaks are 31 automatically added to keep it easy to read. 32 33AUTHORS 34 The "Data::Dump" module is written by Gisle Aas <gisle@aas.no>, based on 35 "Data::Dumper" by Gurusamy Sarathy <gsar@umich.edu>. 36 37 Copyright 1998-2010 Gisle Aas. 38 Copyright 1996-1998 Gurusamy Sarathy. 39 40 This library is free software; you can redistribute it and/or modify it 41 under the same terms as Perl itself. 42