Help for this page

Select Code to Download


  1. or download this
     my $input;
     sysread( \*STDIN, $input, 1024);
    
  2. or download this
    use Fcntl;
      
    fcntl(\*STDIN, F_SETFL, O_NONBLOCK) || die "$!\n";
    # Set the non-block flags