Help for this page

Select Code to Download


  1. or download this
    $loop_count = 10;
    while( ! $done and $loop_count-- ) {
       $done = is_it_done_yet();
       sleep 1;
    }
    
  2. or download this
    while( ! $done ) {
       eval {
    ...
       last if @$ and $@ eq "alarm\n"; # hit alarm timeout
       sleep 1;
    }