In-place Operations

Substitution

    my $str = 'aaaabbbbccc';
    $str =~ s/a/x/g;

Matching

	my $str = 'aaaabbbbccc';
	($a, $b, $c) = ($str =~ /(a+)(b+)(c+)/);