Data::Tersify::perldb - override the standard perl debugger's behaviour
# In your .perldb file use Data::Tersify::perldb; # The x command now automatically passes data through # Data::Tersify::tersify
This is a very simple convenience module that implements a DB::afterinit method that patches the x command so it effectively means x Data::Tersify::tersify(...) instead. Import it from your .perldb file to have the output of x tersified automatically.
x Data::Tersify::tersify(...)
If you already have a DB::afterinit method, or would prefer other things to be tersified, just cut and paste the appropriate code.
Many thanks to Ovid, whose .perldb file was an inspiration and a useful guide.
To install Data::Tersify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Tersify
CPAN shell
perl -MCPAN -e shell install Data::Tersify
For more information on module installation, please visit the detailed CPAN module installation guide.