RSS | Module Info | Add a review of Data-Dump

2 out of 10 found this review helpful:

Data-Dump (1.14) *****

Awesome!

use Data::Dump 'dd';
dd $my_complex_data_structure;

No more $VAR1 ugliness from old-timer Data::Dumper.

Dan Dascalescu - 2009-02-12 00:14:44
Was this review helpful to you?  Yes No

10 out of 11 found this review helpful:

Data-Dump (1.08) *****

I've envied Ruby users which can use just "p" to print out data structures instead of us which used to have to do 'use Data::Dumper; print Dumper(...);'. And even then there's this '$VAR1 = ' garbage which 99% of the time is not wanted. Which often makes me wonder, shouldn't P in Perl stand for Practical?

With Data::Dump we're still a bit behind but closer. One rant is the with the doc: the pp() function should perhaps be advertised more prominently, since I suspect that's what most users want most of the time.

David Garamond - 2007-12-06 03:02:17
Was this review helpful to you?  Yes No

10 out of 10 found this review helpful:

Data-Dump (1.08) *****

A worth successor to Data::Dumper.

Where "warn Dumper(\@a)" would produce a list like this:


$VAR1 = 1;
$VAR2 = [
2,
3
];
$VAR3 = {
'4' => 5
};

With this module, you could write just "pp(\@)" and get a much
tidier result:

(1, [2, 3], { 4 => 5 })

And while Data::Dumper::Names is nice, it requires Perl 5.8.2. This module requires just 5.6, making it likely it work on nearly all Perl installations you encounter.

(To respond to David Garamond's rating: the "dump" and "pp" commands are the same. Also, I've submitted a patch to improve the docs).

Mark Stosberg - 2007-12-05 19:18:10
Was this review helpful to you?  Yes No

4 out of 5 found this review helpful:

Data-Dump (1.08) *****

I don't know how a such a venerable module like Data::Dumper continues to get this stuff so wrong. It seems this module is a pretty darn good idea.

EOL $VAR1

Paul Miller - 2007-12-03 11:57:34
Was this review helpful to you?  Yes No


the camel