> >But that's a post-5.8.0 issue from my perspective.
>
> It's something that should (IMNSHO) at least be documented as a known
> bug.
Change 16439 by jhi@alpha on 2002/05/07 02:49:47
Document the bad behaviour of for(1..5){$_++}
(it works but it should fail)
Affected files ...
.... //depot/perl/pod/perldelta.pod#368 edit
Differences ...
==== //depot/perl/pod/perldelta.pod#368 (text) ====
Index: perl/pod/perldelta.pod
--- perl/pod/perldelta.pod#367~16435~ Mon May 6 18:30:29 2002
+++ perl/pod/perldelta.pod Tue May 7 05:49:47 2002
@@ -2740,6 +2740,14 @@
(Y with diaeresis) not behaving correctly when being matched
case-insensitively.
+=head2 Modifying $_ Inside for(..)
+
+ for (1..5) { $_++ }
+
+works without complaint. It shouldn't. (You should be able to
+modify only lvalue elements inside the loops.) You can see the
+correct behaviour by replacing the 1..5 with 1, 2, 3, 4, 5.
+
=head2 mod_perl 1.26 Doesn't Build With Threaded Perl
Use mod_perl 1.27 or higher.
@@ -2748,7 +2756,7 @@
Don't panic. Read INSTALL 'make test' section instead.
-=head2 HP-UX lib/posix Subtest 9 Fails When LP64-Configured
+=head2 HP-UX lib/posix Subtest 9 Fails When LP64-Configured
If perl is configured with -Duse64bitall, the successful result of the
subtest 10 of lib/posix may arrive before the successful result of the
End of Patch.
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen