sounds like an XY problem to me. Why not something like this <pseudocode>?
Update After I finished writing this, I discovered FunkyMonk had already hit on essentially the same plan. ++, FunkyMonk

# Get the data into an array, or grab it a line at a time; # Read a line/array element to a var, $input; # ie, up to the first + return $may_be_a_full_entry_or_may_not = $input; Loop and read the next line to $input; use a regex to see if it starts with "day\t" if (it matches) { STORE $may_be_a_full_entry_or_may_not; s/"blank"//; # or use a capturing regex # whatever that is: tab, space, multi-spaces??? # be careful to make only the first "blank" go a +way! STORE $input; } else { s/"blank"//; # or use a capturing regex $input = $may_be_a_full_entry_or_may_not; . $input; # concat the +two lines STORE $input to your db; }

repeating until done.

The details of the loop are left to you. Note, this is a) in-elegant and b) won't work, obviously, if the data entry folk spread their daily report over 3 lines.

Update2 Fixed formatting. Thank you, injunjoel!


In reply to Re: Reading two lines per loop iteration by ww
in thread Reading two lines per loop iteration by fishnflute

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.