in reply to File read stopping prematurely

The first thing that occurs to me is that you are reading a binary file as if it were a text file. If any of the binary codes in the input file use the end of line characters (0x0A and 0x0D), you will end up reading the wrong thing.

What platform are you running on? Windows does have the issue of the EOF character (ctrl-Z), but IO::Uncompress::AnyUncompress should ignore that.

Any chance you could upload a data file, or better still the part of the file that doesn't work properly? Not sure if this site allow posting of binary files though.

Replies are listed 'Best First'.
Re^2: File read stopping prematurely
by Ineffectual (Scribe) on Aug 30, 2013 at 00:56 UTC
    Interesting. I'm running on CENTOS linux. The file snippet above is the actual place where the file stops reading - it's a tab delimited file. I copied that snipped directly from vi where it seemed to stop reading.