Help for this page

Select Code to Download


  1. or download this
    for my $i (0 .. $#array) {
        substr($string, $i, 1) = lc substr($string, $i, 1)
            if $array[$i] eq q();
    }
    
  2. or download this
    $altered_string =
        join q(),
    ...
            $array[$_] eq q() ? lc($char) : $char;
        }
        0 .. length $string;