Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 rifling through the Monastery: (12)
As of 2015-07-03 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls