Help for this page

Select Code to Download


  1. or download this
    s/quotemeta('[')/quotemeta('x')/g;
    
  2. or download this
    s/\Q$array1{$count}\E/$array2{$count}/g;
    
  3. or download this
    $from = join('', @array1);  # or set up $from and $to
    $to   = join('', @array2);  # to begin with
    
    tr/$from/$to/;              # e.g. "abc" =~ tr/ab/xy/ ==> "xyc"