Skip to content

Commit f151643

Browse files
committed
perldelta entry for GH #18669
1 parent 1bafab3 commit f151643

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pod/perldelta.pod

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,18 @@ manager will later use a regex to expand these into links.
384384
S<C<use 5.42>> now turns on S<C<use source::encoding "ascii">> for the
385385
remainder of the line (besides subsequent lines). [GH #23881]
386386

387+
=item *
388+
389+
Since 5.32.0, the second branch of a ternary condition operator wasn't
390+
getting the correct autovivification context applied. For example in
391+
something like
392+
393+
@{ $cond ? $h{foo} : $h{bar} } = ...;
394+
395+
the first branch would correctly autovivify C<$h{foo}> to an array ref,
396+
but the second branch might incorrectly autovivify C<$h{bar}> to a hash
397+
ref. [GH #18669].
398+
387399
=back
388400

389401
=head1 Known Problems

0 commit comments

Comments
 (0)