develooper Front page | perl.perl5.porters | Postings from June 2012

Re: [perl #46581] perlop Document clarification

Thread Next
Linda W
June 8, 2012 19:59
Re: [perl #46581] perlop Document clarification
Message ID:
Brian Fraser via RT wrote:
> perlop as of 5.16.0 still has the original line. I personally think the
> clarification is useful (some weeks back I was surprised by 'my $x; $x
> += 1;' not producing warnings), but I don't have a commit bit.
> Linda, would you mind submitting a patch for this? It'll help the odds
> of this being applied, I think.
How does this look:

--- pod/perlop.pod    2012-04-24 19:22:54.000000000 -0700
+++ pod/perlop.pod    2012-06-08 19:55:01.603843202 -0700
@@ -1088,9 +1088,9 @@
     $a = $a + 2;
-although without duplicating any side effects that dereferencing the lvalue
-might trigger, such as from tie().  Other assignment operators work 
-The following are recognized:
+though without warnings that dereferencing the lvalue (target) might 
+such as warning about adding to an "undefined value" warning about the 
side effects of a if the variable was bound with tie().  Other 
assignment operators
+work similarly.  The following are recognized:
     **=    +=    *=    &=    <<=    &&=
            -=    /=    |=    >>=    ||=


Does it need to be submitted to the list?

(also trying it as an attachment)

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