in reply to Re: 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”?

I am more or less a newbie. Please remind me what does $| = 1; do?
  • Comment on Re^2: 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^3: How to interact with the console (input/output) running a Perl program on “Windows Power Shell ISE”?
by LonelyPilgrim (Beadle) on Feb 18, 2012 at 19:15 UTC

    "$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?
        Someone on stackoverflow answered that PS-ISE does not allow this, have you confirmed this by reading the PS-ISE documentation?