in reply to Re: How do I pass $1 to s///?
in thread How do I pass $1 to s///?

\1,\2

If warnings are on using these lead to
\1 better written as $1

There is a section in perlre about it.