There's a snippet of code which shows how to dup, redirect and restore STDOUT and STDERR. Should be working for STDIN and with Windows also.
Could you check? I don't do/have Windows.
<update> PS: there might be a package on CPAN... :P </update>
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^2: Changing STDIN to tty
by shmem
in thread Changing STDIN to tty
by perl_lover
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |