Thanks for your helpful suggestions. I'll look over all the points of interest.

Sorry I haven't replied sooner, been busy with a new release and other issues. Unfortunately, the above is an active script file used by a few heavy duty C++ apps. I was asked to help improve the auditing system that generates reports from these script files. (it enables users to provide adjustments to the current data run)

To get the script working, it currently uses the old match and set a flag :) to update a report. I implemented the updated code, which works descent - generates a more detailed spreadsheet capturing changes made in the last 5 years or so. :) It was one of those, when we get a chance... unfortunately, it took some auditors to get the ball rolling. All is well.

The reason I asked, I know there has to be a better approach to the whole process. I would like to load it into a hash and eliminate the nested if's. At least it doesn't look like a rat nest now.

I will look over the faqs and other suggested items.

Thanks Again, Regards, budman


In reply to Re^2: Parsing balanced parentheses by budman
in thread Parsing balanced parentheses by budman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.