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