Help for this page

Select Code to Download


  1. or download this
    sub hmap(&@) {
       my $cb = shift;
    ...
          $cb->();
       }
    }
    
  2. or download this
    ... = hmap { our($k,$v); ... } ...;
    
  3. or download this
    ... = hmap { my($k,$v)=@_; ... } ...;
    
  4. or download this
    package Hash::Map;
    
    ...
    sub hgrep(&@) { ... }
    
    1;