Preload Data::Printer and avoid polluting your code with debug symbols
When I work, I tend to have a lot of boilerplate. I am a great user of Data::Printer for debugging. There is no way I wouldn’t use it, even on the smallest project. Usually, I have this on all my projects:
use strict; use warnings; use Data::Printer; p $object; Fellow Peter coworker saw me doing that once and said I liked typing too much: only use DDP was enough.
Later I learned another solution was provided in the DDP documentation.