This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
overload.pm: Document &. etc.
authorFather Chrysostomos <sprout@cpan.org>
Mon, 5 Jan 2015 01:10:57 +0000 (17:10 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 1 Feb 2015 06:03:52 +0000 (22:03 -0800)
lib/overload.pm

index 60072f2..9bd15ce 100644 (file)
@@ -407,7 +407,7 @@ evaluating an expression.
 =item * I<Assignments>
 
     +=  -=  *=  /=  %=  **=  <<=  >>=  x=  .=
-    &=  |=  ^=
+    &=  |=  ^=  &.=  |.=  ^.=
 
 Simple assignment is not overloadable (the C<'='> key is used
 for the L<Copy Constructor>).
@@ -437,7 +437,7 @@ even if C<$a> is a scalar.
 =item * I<Non-mutators with a mutator variant>
 
      +  -  *  /  %  **  <<  >>  x  .
-     &  |  ^
+     &  |  ^  &.  |.  ^.
 
 As described L<above|"Calling Conventions and Magic Autogeneration">,
 Perl may call methods for operators like C<+> and C<&> in the course
@@ -650,9 +650,9 @@ to C<'-='> and C<'--'> above:
 And other assignment variations are analogous to
 C<'+='> and C<'-='> (and similar to C<'.='> and C<'x='> above):
 
-              operator ||  *= /= %= **= <<= >>= &= ^= |=
-    -------------------||--------------------------------
-    autogenerated from ||  *  /  %  **  <<  >>  &  ^  |
+              operator ||  *= /= %= **= <<= >>= &= ^= |= &.= ^.= |.=
+    -------------------||-------------------------------------------
+    autogenerated from ||  *  /  %  **  <<  >>  &  ^  |  &.  ^.  |.
 
 Note also that the copy constructor (key C<'='>) may be
 autogenerated, but only for objects based on scalars.
@@ -668,7 +668,7 @@ expects.  The minimal set is:
 
     + - * / % ** << >> x
     <=> cmp
-    & | ^ ~
+    & | ^ ~ &. |. ^. ~.
     atan2 cos sin exp log sqrt int
     "" 0+ bool
     ~~