"be consistent" | |
PerlMonks |
File read stopping prematurelyby Ineffectual (Scribe) |
on Aug 28, 2013 at 00:03 UTC ( [id://1051209]=perlquestion: print w/replies, xml ) | Need Help?? |
Ineffectual has asked for the wisdom of the Perl Monks concerning the following question:
Hello all, I have a gzipped file that contains a string of two bit binary codes. I'm attempting to read this in to do some work on the contents. However, when I attempt to use IO::Uncompress::AnyUncompress, each of the reads ends before the file end. Using gunzip -c | works just fine though. I've included a file snippet below and code. Is this a bug with IO::Uncompress::AnyUncompress? Is this something wrong with my code that attempts to use IO::Uncompress::AnyUncompress? Edit: The file snippet below is where the read ends on line 899924 in each of the three files I'm processing. I don't know if those codes together add up to some sort of stop code.
Working code below results in line count 5042137.
Non-working code below results in line count 13263.
Back to
Seekers of Perl Wisdom
|
|