The immediate idea would be to split the data on spaces, but that does not work entirely because your two last "fields" have embedded spaces:
SEG_NUM:1 of 1 DLV_ATT:0 END_POINT:ESME FINAL_STATE:DELIVERED REG_DEL:1
So I would probably try to first process these two last fields with a regular expression, something like:
@endfields = /(SEG_NUM.+?)\s+(END_POINT.+?)/;
remove them from the string and then use something like split /\s+/ on the rest of the string, and finally to reassemble the array in the proper order.

Update: I did not originally noticed, but it appears that at least two other fields have embedded spaces:

DEST_IDNT:Syniverse A2P I_ERR:0.0 PPS_ID: PPS_PROFILE:AO Submission - OA charged
So splitting on spaces becomes harder to use, at least for about the last half of the original string. Although I don't like the idea too much, perhaps a long regex with each field key is the only solution, at least for the eight fields or so.

In reply to Re: Parsing file in Perl post processing by Laurent_R
in thread Parsing file in Perl post processing by gbwien

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.