Good Morning perl Monks!

I have another issue I'm coming across.

I have a need to open a file (Step1_Comments.csv), manipulate the data, then save the data to a new file.
(Step2_comments.csv)
Perl does this easily!

The problem comes in when I go to OPEN the new file (Step2_Comments.csv) in my same perl script. Perl seems to think there is only one line (record) in the file!

I tried using Tie::File instead of OPEN to access the Step2 file. Tie::File gave me this error:

"Empty record separator not supported" by Tie::File

My perl code to open the step2 file works perfectly in a file all by itself. It opens the file, sees all the rows, and closes just fine.
But when that same code is at the end of the script that creates the file in the first place, it doesn't want to see more than one row in the file..... weird huh!?

Any help is appreciated.

I know this was kind of convoluted, let me know if you need further information.

Thank you in Advance! You guys always come through for me!

In reply to Opening a File Twice by Jamin

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.