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
?
Asked
Active
Viewed 65 times
0

xhienne
- 5,738
- 1
- 15
- 34
-
Use Data::Dumper for Output. So you can print it in a file and work wich a text tool. – Jens Jun 06 '14 at 14:47
-
for slightly better output, I'd recommend [`Data::Dump`](https://metacpan.org/pod/Data::Dump) – Miller Jun 06 '14 at 19:32
1 Answers
3
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.

szabgab
- 6,202
- 11
- 50
- 64

Neil H Watson
- 1,002
- 1
- 14
- 31
-
Yeah I ended up using Dumper to just output the hash to a file. Thanks for the recommendation. – Jun 06 '14 at 17:17