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 $!;
In reply to Re: Reading from the keyboard in Win32 without using STDIN (File::Spec)
by tye
in thread Reading from the keyboard in Win32 without using STDIN
by amrangaye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |