Dump the data structure for printing.

It's useful for checking the complex data strucure of Perl.

For example,

use Data::Dumper;

my %hash = ( 1 => [1,2,3,4],
             2 => { 1 => { 2 => [3,4,5] } },
           );

print Dumper \%hash;

Run it and see what is printing.

Also you could check out its document:
http://search.cpan.org/~smueller/Data-Dumper-2.126/Dumper.pm



2010/5/17 ben perl <ben.pe...@gmail.com>:
> What is the use of Data::Dumper module?
>
> can any body please give examples?
>
> Have been using perl for some time and never used this module. Not sure if i
> am missing something by not using it.



-- 
Tech support agency in China
http://duxieweb.com/

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to