Help for this page

Select Code to Download


  1. or download this
        foreach my $k (keys %h){
        }
    
  2. or download this
        foreach my $k (keys %h){
            my $v=$h{$k};
        }
    
  3. or download this
    case 10000
    hash ready ... count=10000
    ...
    test_each   3.91       46%        --
    ----------------------------------------
    Sat Nov 12 01:21:49 2011
    
  4. or download this
    $./025-6.pl -M1=keys -M2=pairs -N=1e6
    hash built, starting timer
    ...
    $./025-6.pl -M1=each -M2=pairs -N=1e6
    hash built, starting timer
    Took 2.434757 and 1.000MB extra memory for 1000000 using each/pairs me
    +thod