my($b) = /(bar)/ ; # step 1 find the string my($substitute) = foo($b) ; # Step 2 make the substitution s/bar/$substitute/ ; # plug it in
In reply to Re: manipulating capture groups in s///
by ptkdb
in thread manipulating capture groups in s///
by glwtta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |