perlre(1) seems to be missing information about substitution evaluations with the /e option. The functionality is present in perl:
perl -e '$_=2; s/2/1+3/e; print' But it is not listed in the base documentation. The modifier /e is described in "Programming Perl", 4th ed, pp 186, 254-255. Could something like the following be added? Regards, /Lars ? pod2htmd.tmp Index: perlre.pod =================================================================== RCS file: /cvs/src/gnu/usr.bin/perl/pod/perlre.pod,v retrieving revision 1.16 diff -u -p -u -p -r1.16 perlre.pod --- perlre.pod 25 Mar 2013 20:40:59 -0000 1.16 +++ perlre.pod 30 Nov 2013 10:58:38 -0000 @@ -105,6 +105,12 @@ X</p> X<regex, preserve> X<regexp, prese Preserve the string matched such that ${^PREMATCH}, ${^MATCH}, and ${^POSTMATCH} are available for use after matching. +=item e +X</e> + +Treat the replacement portion as an interpreted expression. +Each additional C</e> modifier after the first functions as an eval() around the code to execute. + =item g and c X</g> X</c>