Help for this page

Select Code to Download


  1. or download this
    my %repl= ( frog=>"toad", man=>"boy", woman=>"girl" );
    $foo =~ s/(frog|man|woman)/$repl($1)/g;
    
  2. or download this
    my $re= join "|", map quotemeta($_), keys %repl;