Help for this page

Select Code to Download


  1. or download this
    ## warn if we get an abnormal exit status
    system ("sed -e 's[$c][$b]g' $File1 > $Replace_html")
     == 0 or warn "sed had problems (exit val $?)\n";
    
  2. or download this
    (my $search  = $c) =~ s[/](\\/)g;
    (my $replace = $b) =~ s[/](\\/)g;
    system("sed -e 's/$search/$replace/g' $File1 > $Replace_html")
      == 0 warn "sed had problems (exit val $?)\n";