Same here, except that I never use Data::Dumper. I don't like to read output that intended for 'eval'. In the rare case that I want a complex structure to be printed out when debugging (usually, I'm only interested in a few values - scalar I just print, arrays I just interpolate), I use YAML whose output is much better human readable than Data::Dumper's.
And sometimes, I tie a variable to track the changes in its value.
I seldomly use gdb as well, but then, most C programs I write are pretty small. Most of the time I use gdb is when perl segfaults, and I want a stacktrace to send with a bug report.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.