diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-13 07:27:44 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-13 07:27:44 +0000 |
commit | 736ec1c80bab696179afe4da708394b48b43c248 (patch) | |
tree | 56efce19e4ccf6084360e28b29dbf2b9a2bffc85 /pod/perlop.pod | |
parent | d1fdab8951cfd4b59ef0f71acc62a3d2fdcc4910 (diff) | |
parent | 2002527a20c03cb879ee04519ae2822f7ebcb8d9 (diff) | |
download | perl-736ec1c80bab696179afe4da708394b48b43c248.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4365
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r-- | pod/perlop.pod | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod index 14ca6b5ec0..01074b3096 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -510,10 +510,10 @@ The following are recognized: Although these are grouped by family, they all have the precedence of assignment. -Unlike in C, the assignment operator produces a valid lvalue. Modifying -an assignment is equivalent to doing the assignment and then modifying -the variable that was assigned to. This is useful for modifying -a copy of something, like this: +Unlike in C, the scalar assignment operator produces a valid lvalue. +Modifying an assignment is equivalent to doing the assignment and +then modifying the variable that was assigned to. This is useful +for modifying a copy of something, like this: ($tmp = $global) =~ tr [A-Z] [a-z]; @@ -526,6 +526,11 @@ is equivalent to $a += 2; $a *= 3; +Similarly, a list assignment in list context produces the list of +lvalues assigned to, and a list assignment in scalar context returns +the number of elements produced by the expression on the right hand +side of the assignment. + =head2 Comma Operator Binary "," is the comma operator. In scalar context it evaluates |