Help for this page

Select Code to Download


  1. or download this
    while (<DATA>) {
        next unless m/(\d+)\D+(\d+)/;  # or warn && next, or die
        $min = $1 if $1 < $min;
        $max = $2 if $2 > $max;
    }
    
  2. or download this
        $min = $1 if ( ! defined( $min ) || ( $1 < $min ) );
        $max = $2 if ( ! defined( $max ) || ( $1 > $max ) );