Has anyone gotten the EPIC perl plugin for Eclipse working under Windows?

KingNothing

Diamond Member
Apr 6, 2002
7,141
1
0
Running Eclipse 3M1 on Win2K with Cygwin. I'm having trouble with console output. If my program asks for input, it won't display anything until I've entered a few of the input items, then it displays all the previous output at once. Any ideas?

Found the solution: You have to add the statement:

$|=1;

to the beginning of the perl files. This makes stdout unbuffered.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Yeah, if you don't unbuffer stdout, you have no guarantee that anything will actually show up on the console until you actually tell it to, or the program exits.

Most environments will print your output anyway, though, so you don't typically come across this.
 

KingNothing

Diamond Member
Apr 6, 2002
7,141
1
0
By "tell it to" do you mean like in C++ when you use the flush command? What's the perl equivalent?