Help for this page

Select Code to Download


  1. or download this
    $orig='aaa([\+\-]{1})bbb';
    $res = '([\\+\\-]{';
    ...
    $str=$orig;
    $str =~ s!$qres!!;
    print "Replace against variable quoted => $qres <=: $str\n";
    
  2. or download this
    Replace against variable quoted => ([\+\-]{ <=: aaa1})bbb
    Replace against variable quoted => \Q$res\E <=: aaa([\+\-]{1})bbb
    
  3. or download this
    $"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+)
    +-.*)$/;
    $_=["ps -e -o pid | "," $2 | "," -v "," "];`@$_`?{print"+ $1"}:{print"
    +- $1"}&&`rm $1`;
    print$\;}