Perl Regex ‘e’ (eval) modifier with s///
It’s not exactly a “simple” question, so don’t beat yourself up. The issue is that with a single /e, the RHS is understood to be code whose eval’d result is used for the replacement. What is that RHS? It’s $1. If you evaluated $1, you find that contains the string $var. It does not contain … Read more