Help for this page

Select Code to Download


  1. or download this
    $a = "aaabbbaaa";
    $b = "s/b/c/g";
    eval '$a =~ ' . $b;
    
  2. or download this
    local $_ = "aaabbbaaa";
    $b = "s/b/c/g";
    eval $b;
    
  3. or download this
    # Inputs
    # ======
    ...
    } else {
       $string =~ s/$regexp/$subst/;
    }