FYI: I've given this another look and just can't make sense out of your data. Am I to believe that some lines do actually start with "+", and that some words are broken up like this?

ended June 30, 2001 in conformity with accounting principles generall + Intel +y accepted

Is that how your input data really looks? I mean I'm thinking those "+" characters must have showed up when you copied and pasted the text from some other node. And how did "Intel" get placed between "generall" and "y"?

If that's how your data really looks, then I might be able to get started, except that your specification is also ambiguous.

I don't want to spend another moment trying to come up with a solution if your input data is wrong. You're only going to get help if you post an answerable question. Double-posting doesn't make it more answerable. It just makes it more annoying.


Dave


In reply to Re: Write a Loop by davido
in thread Write a Loop by perlyr

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.