Help for this page

Select Code to Download


  1. or download this
    my %new2 =
    hmap { $_[1]{nick} =~ /rbush|fred/
    ...
              : ()
         } %$h;
    
  2. or download this
    bash-3.2$ perl hmap_good2.pl
    syntax error at hmap_good2.pl line 39, near "] =>"
    syntax error at hmap_good2.pl line 40, near ":"
    Execution of hmap_good2.pl aborted due to compilation errors.
    
  3. or download this
    use Data::Dumper;
    
    ...
    } %$h;
    
    print Dumper ($new2), "\n";
    
  4. or download this
    my $new2 =
        hmap { $_[1]{nick} =~ /rbush|fred/
                   ? ($_[0] => hmap { $_[0], $_[1] } $_[1])
              : ()
    } $h;