Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re:x2 Counting keys with defined or undefined elements in a hash

by jsprat (Curate)
on Jun 05, 2003 at 17:32 UTC ( [id://263420] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
        }
    )
    __END__
    
  2. or download this
    I'll just post the summary output from cmpthese: (perl 5.6.1)
    
                  Rate for_array      grep       for  grep_two
    ...
    grep       90290/s        9%        --       -4%      -39%
    for        94074/s       14%        4%        --      -37%
    grep_two  148846/s       80%       65%       58%        --