Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by exilepanda (Monk)
on Feb 18, 2012 at 18:42 UTC ( #954779=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-12-26 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls