Help for this page

Select Code to Download


  1. or download this
    while ( not defined $result ) {
        ( $result = try( $something ) ) or sleep 3;
    }
    
  2. or download this
    while ( not defined $result ) {
        ( $result = try( $something ) )
            or select undef, undef, undef, 3000;
    }
    
  3. or download this
    use Time::HiRes qw/ usleep /;
    
    while( not defined $result ) {
        ( $result = try( $something ) ) or usleep( 3000 );
    }