Also note that if you are matching multiline string, the /m modifier is needed to match after a newline.$s = "test string x x\nFeb 1 09:12:33 ("; $s =~ s/^(\w{3}) /$1 /m;
In reply to Re: contextual substitution with s///?
by choroba
in thread contextual substitution with s///?
by Wiggins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |