in reply to Binmode binary/html/cgi

Have you tried testing without the binmode (to make sure that really is the problem)? Can you show us the code that's not working (or a relevant subset)?