Data::Printer is a Perl module to pretty-print Perl data structures and objects in full color. It is meant to display variables on screen, properly formatted to be inspected by a human.
Data::Printer is highly customizable, from indentation size to depth level. You can even rename the exported p() function!
Data::Printer also lets you create filters to help debugging your objects easily.
$ cpan Data::Printer
$ cpanm Data::Printer
cloning the repository
$ git clone git://github.com/garu/Data-Printer.git
manual installation, after downloading
perl Build.PL ./Build ./Build test ./Build install
use Data::Printer; p $data;
Please refer to http://search.cpan.org/perldoc?Data::Printer for complete documentation, or type:
after the installation.
SUPPORT AND DOCUMENTATION
You can also look for information at:
RT, CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-Printer AnnoCPAN, Annotated CPAN documentation http://annocpan.org/dist/Data-Printer CPAN Ratings http://cpanratings.perl.org/d/Data-Printer Search CPAN http://search.cpan.org/dist/Data-Printer/
LICENSE AND COPYRIGHT
Copyright (C) 2011-2017 Breno G. de Oliveira
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.