Easy Data::Printer in the perl debugger | Chisel [blogs.perl.org]
If you want to try it add the following to $HOME/.perldb:
$DB::alias{dp} = 's/dp/DB::dp/';
sub DB::dp {
eval {
require Data::Printer;
Data::Printer->import(colored=>1,use_prototypes=>0);
};
if ($@=~/Can't locate/) {
print 'Data::Printer is not installed';
return;
};
print Data::Printer::p(@_);
}
March 17, 2021 at 10:40:10 AM EDT
*
FILLER