Help for this page

Select Code to Download


  1. or download this
    my %new = hmap {
        exists $b->{ nick } && $b->{ nick } =~ m[^(?:rbush|fred)$]
            ? ( $a => scalar hgrep{ $a =~ m[^(nick|phone)$] } $b ) 
            : ()
    } \%old;
    
  2. or download this
    #! perl -slw
    use strict;
    ...
      5 => { nick => "fred", phone => 1112300 },
    }