Help for this page

Select Code to Download


  1. or download this
    my $EPSILON = 0.01;
    
    ...
        my ( $f1, $f2 ) = @_;
        return abs( $f1 - $f2 ) < $EPSILON;
    }
    
  2. or download this
    while ( <> )
    {
    ...
        next if @in_range == 1 && approx_equal( $in_range[0], 305.1 );
        print;
    }
    
  3. or download this
    LINE:
    while ( my $line = <> )
    ...
            warn "ill-formed line $.: no values in range";
        }
    }