In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/1c424184c97803c765d90531e9cba375ba72f002?hp=5930c76e453c2d523e693e46ae0b14406cbac510>
- Log ----------------------------------------------------------------- commit 1c424184c97803c765d90531e9cba375ba72f002 Author: Father Chrysostomos <[email protected]> Date: Sun Mar 13 22:28:46 2011 -0700 perlop: Mention the s///le special case This is apparently undocumented except in perldiag and a previous perldelta. ----------------------------------------------------------------------- Summary of changes: pod/perlop.pod | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/pod/perlop.pod b/pod/perlop.pod index 3b7bc0d..046b616 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -1684,6 +1684,14 @@ to occur that you might want. Here are two common cases: # expand tabs to 8-column spacing 1 while s/\t+/' ' x (length($&)*8 - length($`)%8)/e; +C<s///le> is treated as a substitution followed by the C<le> operator, not +the C</le> flags. This may change in a future version of Perl. It +produces a warning if warnings are enabled. To disambiguate, use a space +or change the order of the flags: + + s/foo/bar/ le 5; # "le" infix operator + s/foo/bar/el; # "e" and "l" flags + =back =head2 Quote-Like Operators -- Perl5 Master Repository
