Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    } else {
        print("Error ", 0+$!, ": $!\n");
    }
    
  2. or download this
    Win>perl a.pl
    Error 0:
    
    linux$ perl a.pl
    Error 29: Illegal seek
    
  3. or download this
    use strict;
    use warnings;
    ...
    } else {
        print("Timeout\n");
    }
    
  4. or download this
    Win>perl a.pl 0
    Timeout
    ...
    
    linux$ perl a.pl 1
    select: (9) Bad file descriptor
    
  5. or download this
    - if(select($rb,$wb,$eb,$t) > 0)
    + if(select($rb,$wb,$eb,$t) >= 0)
    
  6. or download this
    use strict;
    use warnings;
    ...
        print("Num writers ready: ", 0+@$w_ready, "\n");
        print("Num errors  ready: ", 0+@$e_ready, "\n");
    }