develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000317.003] missing slice of reference

Thread Previous
From:
JVromans
Date:
March 19, 2000 09:55
Subject:
Re: [ID 20000317.003] missing slice of reference
Message ID:
m24sa2c0bp.fsf@phoenix.squirrel.nl
Tom Christiansen <tchrist@chthon.perl.com> writes:

> >But it certainly ought to be documented.    Patch attached.
> 
> I like to see it documented as an error. 

Okay, I'll bite. This assumes the previous patch is _not_ applied.

--- pod/perldelta.pod	Sun Mar 19 16:59:50 2000
+++ new/pod/perldelta.pod	Sun Mar 19 18:50:48 2000
@@ -2686,6 +2686,18 @@
 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
End of patch

-- Johan

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About