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

Re: [perl #46581] perlop Document clarification

Thread Next
From:
Linda W
Date:
June 8, 2012 19:59
Subject:
Re: [perl #46581] perlop Document clarification
Message ID:
4FD2BBF2.5040301@tlinx.org
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 
similarly.
-The following are recognized:
+though without warnings that dereferencing the lvalue (target) might 
trigger,
+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


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