I can't believe I missed that. I had conditioned so many of the other substr's to prevent issues and just complete missed that one. However, after clearing that out I am still getting on uninitialized error. Below is the sample input data and the output up to the error:

INPUT

06 01720168-00000000257980 123 N PLAZA HWY 123 172016-8 SOME COMPANY INC. ANOTHER COMPNAY OF SOMWHERE P O BOX 1234 123 STREET RD. CITY KY 12345 SUITE# 1234 CITY, ST 12345 6/23/2014 $257.98 ANOTHER COMPNAY OF SOMWHERE 6/23/2014 123 STREET RD. 172016-8 6/09/2014 CITY, ST 12345 $257.98 02CS 4/30 5/28 3117.0 3259.0 142.0 Meter # C204508 142.0 232.99 Pipe Replacement Pgm SNR Comm 3.27 RESEARCH & DEVELOPMENT TARIFF .03 3.00% Rate Increase County Co Sc Tax on 236.29 7.09 6.00% State Tax on 243.38 14.60 Current Charges 257.98 Previous Amount Due 351.60 Payment Received 5/22 351.60CR Total Amount Due 257.98 1-877-123-1234 66.0 28 142.0 8:00am to 4:00pm 58.6 30 203.0 70.3 28 174.0

OUTPUT

elt 1 0 is 00001 elt 1 1 is 00001111 elt 1 2 is 06 elt 1 3 is 01720168-00000000257980 elt 1 4 is 172016-8 elt 1 5 is SOME COMPANY INC. elt 1 6 is 123 STREET RD. elt 1 7 is CITY, ST 12345 elt 1 8 is elt 1 9 is ANOTHER COMPNAY OF SOMWHERE elt 1 10 is 123 STREET RD. elt 1 11 is SUITE# 1234 elt 1 12 is CITY, ST 12345 elt 1 13 is ANOTHER COMPNAY OF SOMWHERE elt 1 14 is 123 STREET RD. elt 1 15 is CITY, ST 12345 elt 1 16 is elt 1 17 is 6/23/2014 elt 1 18 is 6/09/2014 elt 1 19 is $257.98 elt 1 20 is $257.98 elt 1 21 is 1-877-123-1234 elt 1 22 is c66.0 elt 1 23 is 58.6 elt 1 24 is 70.3 elt 1 25 is 28 elt 1 26 is 30 elt 1 27 is 28 elt 1 28 is c142.0 elt 1 29 is 203.0 elt 1 30 is 174.0 elt 1 31 is 257.98 Use of uninitialized value in concatenation (.) or string at c:/perl/c +onvert2.pl line 45. elt 1 32 is elt

In reply to Re^2: Undef and Unitialized Issue by Pharazon
in thread Undef and Unitialized Issue by Pharazon

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.