in reply to
Parsing large files
binmode()
both input and output filehandles and your code should work.
--perlplexer
Comment on
Re: Parsing large files
In Section
Seekers of Perl Wisdom