Sorry if the answer is obvious, I'm still a novice.
Ouch. Quite a task you've got yourself there, for a novice.
I suggest you walk through the code with the debugger,
setting breakpoints and gaining familiarity with the code as you go.
At least for me, working with the debugger whenever possible is the best way of finding out what is actualy happening in the program. I've often caught bugs by walking throught the code I wasn't sure of step by step, and comparing the values of the variables with what I thought they should be.
Perl debugger actualy has the functionality you're looking for (in the X command). If you're absolutely decided that you have to implement this for debugging, you can look at the debugger's code to see how it's done.
Good luck!
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.