Okay, everybody, it works! Here's the lowdown. It was a text-encoding problem. UTF-8 and UTF-16 weren't cooperating. Duh. also explains why just ONE character worked.... Seems like perl could deal with 0000000012345678 as an 8bit value, but a STRING of those (000000001234567800000000685708540000000064739567) was thought to be 00000000, 12345678, 00000000, 68570854, etc, which obviously DIDN'T match. I'm happy to have resovled this one. That's correct about the for/vs while. Oops! Thanks. And yes, I'm constantly reminded to consult CPAN. But, I'm just learning perl. I'm not using modules; I'm writing everything myself. The more code you write, the more you learn. I know it's reinventing the wheel. That's how you learn! "Good programmers write good programs, great programmers steal great programmers." Obviously. I'm trying to learn to be a good programmer before I become a great programmer. Thanks for your help everyone!

In reply to It works! by stalepretzel
in thread Input Record Separator WON'T WORK! by stalepretzel

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.