in reply to Reading a big file and passing to output

since you're on NT and seem to handle binary data, I suggest you to put a binmode STDOUT; instruction after the print header(...) line.

cheers,
Aldo

__END__ $_=q,just perl,,s, , another ,,s,$, hacker,,print;