in reply to IsKeyPressed not properly working with 'tee' command

'tee' is not a normal Windows command, and I'm not sure what you mean by "a perl environment". From your description - it fails with tee but works without - don't you think the 'tee' program is the problem? You might be better served asking whoever supplied the 'tee' command.
$| (unless you changed the default file handle) should only affect output, not input.
  • Comment on Re: IsKeyPressed not properly working with 'tee' command