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

how about adding a $| = 1; at the first line of your code ?
  • Comment on Re: How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?
  • Download Code

Replies are listed 'Best First'.
Re^2: 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:02 UTC
    I am more or less a newbie. Please remind me what does $| = 1; do?

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

        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.
        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?