Skip to content
colored pretty-print of Perl data structures and objects
Find file
Latest commit 3cf5e90 @garu Merge pull request #83 from oalders/document-np
Document that np() is now available via Data::Printer::Filter.


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.


# from CPAN $ cpan Data::Printer

# from cpanm $ cpanm Data::Printer

# cloning the repository $ git clone git://

# manual installation, after downloading perl Build.PL ./Build ./Build test ./Build install


use Data::Printer; p $data;

Please refer to for complete documentation, or type:

perldoc Data::Printer

after the installation.


You can also look for information at:

RT, CPAN's request tracker

AnnoCPAN, Annotated CPAN documentation

CPAN Ratings

Search CPAN


Copyright (C) 2011 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 for more information.

Something went wrong with that request. Please try again.