develooper Front page | perl.documentation | Postings from November 2013

updating perlre(1)

Thread Next
From:
=?ISO-8859-15?Q?Lars_Nood=E9n?=
Date:
November 30, 2013 18:22
Subject:
updating perlre(1)
Message ID:
529A2BA7.50209@gmail.com
I would like to suggest that the two substitution modifiers, /e and /r, be 
given brief summaries in the list of modifiers at the beginning of 
perlre(1).  The other modifiers are already there and they belong all 
together.

The modifier /e is described in "Programming Perl", 4th ed, pp 186, 
254-255. /r is mentioned on p 186.

Where should suggestions for corrections be sent, is this the right list?

Could something like the text below be added?

Regards,
/Lars

$ diff perlre.pod perlre.pod.orig
124,134d123
< =item e
< X</e>
<
< In a subsitution, 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 r
< X</r>
<
< In a substitution, return the replacement but leave the original string untouched.
<

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About