Another way to do it is
use Data::Printer {
class => {
expand => 'all', # default 1
},
};
https://metacpan.org/release/GARU/Data-Printer-0.35/view/lib/Data/Printer.pm#CUSTOMIZATION
As of now we are 12 years in the future, I'm not sure when the expand
param was added, but pretty useful!