| 1 |
[[!comment format=mdwn |
| 2 |
username="joey" |
| 3 |
subject="""comment 1""" |
| 4 |
date="2019-10-02T15:50:38Z" |
| 5 |
content=""" |
| 6 |
The patch seems to not detect the undefined value, so it will still crash. |
| 7 |
|
| 8 |
Compare: |
| 9 |
|
| 10 |
perl -e 'use warnings; use strict; foreach my $foo (@{ undef() }) { print $foo }' |
| 11 |
Can't use an undefined value as an ARRAY reference at -e line 1. |
| 12 |
|
| 13 |
perl -e 'use warnings; use strict; my $l=@{ undef() } ; foreach my $foo (@{$l}) { print $foo }' |
| 14 |
Can't use an undefined value as an ARRAY reference at -e line 1. |
| 15 |
|
| 16 |
"""]] |