Data::Dumper::Table - A more tabular way to Dumper your Data
Version 0.012
use Data::Dumper::Table; my $x = [qw(one two three)]; say Tabulate [ { foo => $x, bar => 2 }, { foo => 3, bar => { apple => q(or'ange) } }, $x, [ { bar => q(baz), flibble => q(quux), flobble => undef() }, { bar => q(baz2), flobble => qr/foo/ } ] ]; ARRAY(1) [0] HASH(2) ----------------------------- 'bar' => '2' 'foo' => ARRAY(3) [0] 'one' [1] 'two' [2] 'three' [1] HASH(4) ------------------------------ 'bar' => HASH(5) --------------------- 'apple' => 'or\'ange' 'foo' => '3' [2] -> ARRAY(3) [3] ARRAY<HASH>(6) 'bar' | 'flibble' | 'flobble' --------+-----------+------------- 'baz' | 'quux' | undef() 'baz2' | - | /(?^u:foo)/
The goal of Data::Dumper::Table is to provide a more-tabular alternative to Data::Dumper.
Turn the provided DATA into a (hopefully) nicely-formatted table. More verbose and space-hungry than Data::Dumper, but possibly easier to read.
This module is explicitly alpha-quality software. If you successfully use it in production, you're a braver being than I am. See also the TODO list for things that are known not to be handled well.
Replicate $Data::Dumper::Sortkeys
Replicate $Data::Dumper::Deparse
Handle them, somehow
Handle it, somehow. Be especially wary of stuff tied to databases, files, and other not-supposed-to-be-dumped things
Should be a SMOP once this thing's in the air properly ;-)
Artistic 2.0
To install Data::Dumper::Table, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Dumper::Table
CPAN shell
perl -MCPAN -e shell install Data::Dumper::Table
For more information on module installation, please visit the detailed CPAN module installation guide.