note
AnomalousMonk
<p>
The only situation in which you will get into trouble is if you include an honest-to-goodness list literal in your <c>for</C>-loop iteration list and then try to do some mutating operation on it.
</P>
<c>
>perl -wMstrict -le
"my @ra1 = qw(foo bar);
my @ra2 = qw(does not get here);
;;
for my $file (@ra1, 'zonk', @ra2) {
$file .= '-appendage';
print qq{'$file'};
}
"
'foo-appendage'
'bar-appendage'
Modification of a read-only value attempted at -e line 1.
</C>
1033068
1033068