This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add @x->[2] bug to known issues (from Johan Vromans)
authorGurusamy Sarathy <gsar@cpan.org>
Sun, 19 Mar 2000 18:51:24 +0000 (18:51 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Sun, 19 Mar 2000 18:51:24 +0000 (18:51 +0000)
p4raw-id: //depot/perl@5835

pod/perldelta.pod

index f85a819..680bcb7 100644 (file)
@@ -2686,6 +2686,18 @@ rather mild: Perl itself is not adversely affected by the error, only
 the h2ph utility coming with Perl, and that is rather rarely needed
 these days.
 
+=head2 Arrow operator and arrays
+
+When the left argument to the arrow operator C<< -> >> is an array, or
+the C<scalar> operator operating on an array, the result of the
+operation must be considered erroneous. For example:
+
+    @x->[2]
+    scalar(@x)->[2]
+
+These expressions will get run-time errors in some future release of
+Perl.
+
 =head2 Many features still experimental
 
 As discussed above, many features are still experimental.  Interfaces and