Search code examples
perldebuggingless-unix

Restrict the output using the perl debugger


I'm using the perl debugger to analyze a large hash. However, when I display it (with x) it fills up the display and I can't see the start of the hash. Is there a way to pipe the output through something similar to less?


Solution

  • You might look at Devel::Trace that you can run via the command line and capture output. Run with perl -d:Trace program. http://metacpan.org/pod/Devel::Trace

    Data::Dumper is also very useful.