Yes, you'll run into trouble, you should have used the /e flag. It causes the right side of your expression to be executed and its return value is used as the replacement.
s((bar))(foo($1))geIn reply to Re: manipulating capture groups in s///
by diotalevi
in thread manipulating capture groups in s///
by glwtta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |