Help for this page

Select Code to Download


  1. or download this
    s/foo/bar/g;
    
  2. or download this
    sub s {
            my ( $obj, $pat, $sub ) = @_;
            $obj->{'content'} =~ s/$pat/$sub/g;
    }
    
  3. or download this
    use overload
          "s" => \&s;