File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,29 @@ manager will later use a regex to expand these into links.
374
374
375
375
=item *
376
376
377
- XXX
377
+ Certain constructs involving a two-variable C<for> loop would crash the perl
378
+ compiler in v5.42.0:
379
+
380
+ # Two-variable for loop over a list returned from a method call:
381
+ for my ($x, $y) (Some::Class->foo()) { ... }
382
+ for my ($x, $y) ($object->foo()) { ... }
383
+
384
+ and
385
+
386
+ # Two-variable for loop over a list returned from a call to a
387
+ # lexical(ly imported) subroutine, all inside a lexically scoped
388
+ # or anonymous subroutine:
389
+ my sub foo { ... }
390
+ my $fn = sub {
391
+ for my ($x, $y) (foo()) { ... }
392
+ };
393
+
394
+ use builtin qw(indexed); # lexical import!
395
+ my sub bar {
396
+ for my ($x, $y) (indexed(...)) { ... }
397
+ }
398
+
399
+ These have been fixed. [GH #23405]
378
400
379
401
=item *
380
402
You can’t perform that action at this time.
0 commit comments