csetProf has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to use the OpenPerl IDE with ActivePerl on my XP OS. I can't get the output to flush to the output window until the program ends. If I'm prompting the user for info, the prompts won't appear until the program ends. Is there some kind of setting or perl command to force it out?

Just a beginner at this stuff.

Edited by Chady -- retitled from 'openperl ide'

Replies are listed 'Best First'.
Re: Flushing stdout
by flyingmoose (Priest) on Mar 10, 2004 at 19:41 UTC
    You might want to try $|=1; to set autoflush or try printing to STDERR just as a test. I have zero experience with OpenPerl (I just now learned it existed), but I have seen many cases where buffered streams don't surface well when running inside other programs.
Re: Flushing stdout
by arden (Curate) on Mar 10, 2004 at 17:10 UTC
    csetProf, why don't you show us your code. It'll really help us to help you with any problems you're having. . .

    - - arden.

Re: Flushing stdout
by ambrus (Abbot) on Mar 10, 2004 at 20:37 UTC