Re: perlre(1) and substitution evaluations

2013-11-30 Thread Charles DeRykus
On 11/30/2013 5:16 AM, Lars Noodén wrote: On 11/30/2013 02:55 PM, Charles DeRykus wrote: [ .. Thanks. I see those in perlop and perlfunc. In perlfunc, it is grouped as "Regular expressions and pattern matching" though that man page just points to perlop. A really clear description in perlre

Re: perlre(1) and substitution evaluations

2013-11-30 Thread Lars Noodén
On 11/30/2013 02:55 PM, Charles DeRykus wrote: > See the substitution operator in perlop: > > |||| A |/e| will cause the > replacement portion to be treated as a full-fledged Perl expression and > evaluated right then and there. It is, however, syntax che

Re: perlre(1) and substitution evaluations

2013-11-30 Thread Charles DeRykus
On 11/30/2013 4:07 AM, Lars Noodén wrote: 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 pod documentation for v5.16.3 or v5.18.1. The modifi

Re: perlre(1) and substitution evaluations

2013-11-30 Thread Rob Dixon
"Lars Noodén" wrote: >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 pod documentation for v5.16.3 or v5.18.1. >The modifier /e is descri

perlre(1) and substitution evaluations

2013-11-30 Thread Lars Noodén
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 pod documentation for v5.16.3 or v5.18.1. The modifier /e is described in "Programming Perl", 4t