Subject: | s///e RHS is not validated |
Perl refuses to compile programs with syntax errors on the right-hand side of an s///e:
$ perl -ce 's/./3 4/e'
Number found where operator expected at -e line 1, near "3 4"
(Missing operator before 4?)
syntax error at -e line 1, near "3 4"
-e had compilation errors.
but PPR happily accepts them; it apparently ignores the /e flag.
There are some very tricky cases hiding here; in particular, the RHS of the substitution can contain heredocs and formats and so on.