Right now I'm just spec-ing the project and have a few days to muck about - we have an end goal and my boss wants an order of magnitude estimate for planning. It doesn't have to be a general processor, and some exploration of the way this source code is constructed has suggested that an easier solution is manual translation of the (evolving) code base which I will codify into a script.

If all your if blocks have to next to avoid entering the continue anyway

I don't know if you're following my program flow - the nexts don't skip the continue block, they're effectively gotos for the continue block. I personally prefer an if(){next} to if(){}elsif structure - to me it reads easier at the expense of a keystroke (wholly subjective) - but that is irrelevant to the overall while-continue structure. By using a continue, it means unless I hit a line where I explicitly say I've successfully parsed (undef $_, next;) the error code is executed.


In reply to Re^9: while(){}continue{}; Useful? by kennethk
in thread while(){}continue{}; Useful? by BrowserUk

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.