Show us some code!

Also, if your record separator is set to "EOF", could you tell us what the value of EOF is for your OS? My experience is that explicit EOF markers aren't used in most media (iirc, they're still used for tapes, cards, and JCL) in most current O/S (even Windows pretty much ignores its ^Z EOF marker of the distant past).

So, I see a few possibilities. One is that your file has no record separators (unlikely, but possible). A second is that your version of Perl was built improperly, so it's not recognizing your O/S's record separators. Since you've said you're on a *ix, it's possible that you're processing files from a Mac, which once used \r as a record separator. The final possibility is that there is a bug in your code. The first place I look is in what I've done, so I would suggest you look to your code first, then the other possibilities.

emc

At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.

In reply to Re: changing record separator to all my perl programs by swampyankee
in thread changing record separator to all my perl programs by greatshots

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.