NAME
Dump::Krumo - Fancy, colorful, human readable dumps of your data
SYNOPSIS
use Dump::Krumo;
my $data = { one => 1, two => 2, three => 3 };
kx($data);
my $list = ['one', 'two', 'three', 'four'];
kxd($list);
DESCRIPTION
Colorfully dump your data to make debugging variables easier. Dump::Krumo focuses on making your data human readable and easily parseable.
METHODS
- kx($var)
-
Debug print
$var. - kxd($var)
-
Debug print
$varanddie(). This outputs file and line information.
OPTIONS
$Dump::Krumo::use_color = 1-
Turn color on/off
$Dump::Krumo::return_string = 0-
Return a string instead of printing out
$Dump::Krumo::indent_spaces = 2-
Number of spaces to indent each level
$Dump::Krumo::disable = 0-
Disable all output from
Dump::Krumo. This allows you to leave all of your debug print statements in your code, and disable them at runtime as needed. $Dump::Krumo::promote_bool = 1-
Convert JSON::PP::Booleans to true/false instead of treating them as objects.
$Dump::Krumo::COLORS-
Reference to a hash of colors for each variable type. Update this and create your own color scheme.
SEE ALSO
AUTHOR
Scott Baker - https://www.perturb.org/