You cannot modify the match variables, anyway.
That's not an attempt to modify $1 at all. It's an attempt to use it as a pattern, which is fine.
You seem to have confused that with $1 =~ s/.../.../;$ perl -le '$_="foo"; /(o)/; s/$1/x/; print' fxo
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Using 'e' in s///
by sauoq
in thread Using 'e' in s///
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |