Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: not working in Win10

by huck (Prior)
on May 31, 2019 at 23:43 UTC ( #11100824=note: print w/replies, xml ) Need Help??

in reply to not working in Win10

Try adding

$| = 1;
before the first print. If that works it means that rather than going into autoflush mode on STDOUT it is going into buffering mode. perl normally sets autoflush mode on STDOUT if it thinks it is writing to a terminal, so if this works then for some reason when you start perl it doesnt think STDOUT is connected to a terminal.

Replies are listed 'Best First'.
Re^2: not working in Win10
by Boschman (Initiate) on Jun 04, 2019 at 18:00 UTC

    huck! your suggestion worked! A million thanks!! and thanks to all responders as well!!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2022-11-26 13:11 GMT
Find Nodes?
    Voting Booth?