in reply to Reading from the keyboard in Win32 without using STDIN

You might want to use File::Spec, which knows about special device files for different operating systems:

use File::Spec::Functions qw( devnull ); open( OUT, ">".devnull() ) || die $!;
and someone needs to submit a patch to provide a devtty() function. (:

                - tye
  • Comment on Re: Reading from the keyboard in Win32 without using STDIN (File::Spec)
  • Download Code