$partstring = substr($string, $start, $length); # returns in $partstring the partial string starting at position $start of at most $length characters
|
substr($string, $start, $length) = $new; # replaces extracted substring with characters in $new which need not be of same length as original
|