Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $fh = \*STDIN;
    fcntl($fh, F_SETFL, O_NONBLOCK) || die "$!\n"; 
    sysread($fh, my $buf, 1);
    
  2. or download this
    Your vendor has not defined Fcntl macro F_SETFL, used at ...