Help for this page

Select Code to Download


  1. or download this
    open HANDLE, "some_script |";
    push @INPUT, *HANDLE;
    ...
      }
      do_something_with_input();
    }
    
  2. or download this
    use IO::Select;
    
    ...
    if (@ready = $select->can_read(0)) {
        # input waiting on the filehandles in @ready
    }