in reply to Re^4: Cannot work on second file after reading first file.
in thread Cannot work on second file after reading first file.

Ok, so you know the following:

Some of those things we know are contradictory. They can't both be true. We can't both not be at the end of the file, and be at the end of the file. We can't both have "auto_diag" set, and have an unreported error occurring.

Is your "large script" running as the same user as your test script?


Dave

Replies are listed 'Best First'.
Re^6: Cannot work on second file after reading first file.
by sn1987a (Curate) on Feb 28, 2014 at 18:57 UTC

    In my testing, $csv->eof did not return true even after trying a second get_line (According to the documentation is does not return true until after an attempt to read past the EOF.)

    In any event the cause was a change in global state in open_po: $/ was being set to undef. See Re: Cannot work on second file after reading first file.

      Good work.


      Dave