Help for this page

Select Code to Download


  1. or download this
    sub search {
      my ($fh, $cmp) = @_;
    ...
        else                  { $hi = $mid   }
      }
    }
    
  2. or download this
      open DICT, "<", "/usr/dict/Web2" or die...;
      if (search(\*DICT, sub { lc $_ cmp "foo" })) {
    ...
          print;
        }
      }