Help for this page

Select Code to Download


  1. or download this
    for (grep /^default_option_/, keys %def) {
       my (undef, $option) = split /_/, $_, 2;
       $s{$option} = $def{$_};
    }
    
  2. or download this
    for ( grep /^default_option_/, keys %def ) {
    
       $s{ (split /_/, $_, 2)[-1] } = $def{ $_ };
    }
    
  3. or download this
    %s =
      map
    ...
      #  Useless use of grep.
      grep /^default_option_/, keys %def
      ;
    
  4. or download this
    %s =
      map
    ...
        : ()
      }
      keys %def ;