Bug#853275: Modification of a read-only value error is not caught in for($e+1){$_=3; }
積丹尼 Dan Jacobson
jidanni at jidanni.org
Tue Jan 31 03:04:49 UTC 2017
Package: perl
Version: 5.24.1-1
Severity: wishlist
It seems the 'Modification of a read-only value' error is not caught in
the second case:
$ perl -wle 'use strict; for(8){$_=3;};'
Modification of a read-only value attempted at -e line 1.
$ perl -wle 'use strict; my $e; $e=8; for($e+1){$_=3;}; print $e;'
8
More information about the Perl-maintainers
mailing list