Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    use Benchmark;
    ...
      @hash{@rvs} = (1) x @rvs;
      return 1 if ($hash{$array[0]});
    }
    
  2. or download this
    Benchmark: timing 100 iterations of grepit, hashit...
        grepit: 19 wallclock secs 
    ...
    Grepit found the number
    Hashit found the number