Help for this page

Select Code to Download


  1. or download this
      while (1) {
        my $timeout = 5 ;
    ...
        } ;
      } ;
    
  2. or download this
      sub events {
        while (@events) {
    ...
        } ;
        return 5 ;
      } ;
    
  3. or download this
      use Time::HiRes qw(time ualarm) ;
    
    ...
        $delay = 0.0001  if $delay < 0.0001 ;
        ualarm($delay * MS) ;
      } ;