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

Re: [ID 20000317.003] missing slice of reference

Thread Previous
March 19, 2000 09:55
Re: [ID 20000317.003] missing slice of reference
Message ID:
Tom Christiansen <> 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
 =head2 Many features still experimental
 As discussed above, many features are still experimental.  Interfaces and
End of patch

-- Johan

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About