in reply to Re^2: How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?
in thread How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?

"$OUTPUT_AUTOFLUSH." It forces Perl to dump STDOUT and STDERR immediately, rather than buffering them. See perlvar.

  • Comment on Re^3: How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?

Replies are listed 'Best First'.
Re^4: How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?
by HelenCr (Monk) on Feb 18, 2012 at 19:25 UTC
    Thank you. That was really a good suggestion.

    What happens now, is that it prints to the PS ISE console the messages up to:
    # Open file to convert print "Input to convert: enter path\\fileName: ";
    But hangs there without printing that line, or accepting input from STDIN.
Re^4: How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?
by HelenCr (Monk) on Feb 18, 2012 at 20:04 UTC
    When I add \n to the string, it does print it on the PS-ISE console. So now the question remains: how to make STDIN work?
      Someone on stackoverflow answered that PS-ISE does not allow this, have you confirmed this by reading the PS-ISE documentation?

        I think you are right - impossible to do on PS-ISE.
        I think I'll drop it and use "Console" (="Console2"), the SourgeForge project.
        Thank again for your good input.