in reply to Help with stdout.... in perl..

Hi.

This doesn't answer your question, but you seem to have formatted your post in one big block of code. You should probably try to put just the blocks of code into <code> tags, and put your regular paragraphs into <p>'s.

Actually, I do have one comment about your code: you probably should put use strict at the top (and note that use warnings (which I believe has lexical scope) has mostly replaced the -w usage.