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:
and someone needs to submit a patch to provide a devtty() function. (: - tyeuse File::Spec::Functions qw( devnull ); open( OUT, ">".devnull() ) || die $!;
|
|---|