Help for this page

Select Code to Download


  1. or download this
    $str =~ s{$pat}{
       prompt( $_, $-[0], $+[0]-$-[0], $&, $repl, $`, $' )
       ? $repl
       : $&
    }eg
    
  2. or download this
    use String::Substitution qw( interpolate_match_vars last_match_vars );
    
    ...
       ? $true_repl
       : $&
    }eg