diff options
Diffstat (limited to 'pod/perldelta.pod')
-rw-r--r-- | pod/perldelta.pod | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index ae3021b9d1..611ceb648f 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -511,6 +511,13 @@ permitted as the first thing in a C<map> or C<grep> block, the block after C<print> or C<say> (or other functions) returning a handle, and within C<${...}>, C<@{...}>, etc. [perl #122782] +=item * + +The repetition operator C<x> now propagates lvalue context to its left-hand +argument when used in contexts like C<foreach>. That allows +C<for(($#that_array)x2) { ... }> to work as expected if the loop modifies +$_. + =back =head1 Known Problems |