Help for this page

Select Code to Download


  1. or download this
    my @aoh = ( 
        {k0 => 'v0' }
    ...
      , {k2 => 'v2' }
      , {k3 => 'v3' }
    );
    
  2. or download this
    $val = [grep {(keys $_)[0] eq 'k2'} @aoh]->[0]{'k2'};
    
  3. or download this
    my %h = map {%$_} @aoh;
    
    ## now its just:
    say $h{'k2'};