Help for this page

Select Code to Download


  1. or download this
    my %hash = (tom => 23, larry=> 't0', tina=> 23);
    
    my @filteredhash = grep{/^t/} keys %hash;
    my %newhash = map{$_, $hash{$_}} @filteredhash;
    
  2. or download this
    my %newhash = map{$_, $hash{$_}} grep{/^t/} keys %hash;