summaryrefslogtreecommitdiff
path: root/lib/overload.pm
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2015-01-04 17:10:57 -0800
committerFather Chrysostomos <sprout@cpan.org>2015-01-31 22:03:52 -0800
commit3b41b1dff469337d35e4521c1f3331cb0e085019 (patch)
treea8e7cc25a5b6011f5b1b7bf3d3f0651cb9eb25fa /lib/overload.pm
parent9219de7eacc2a8507fc1448a5f13f5aebb27e984 (diff)
downloadperl-3b41b1dff469337d35e4521c1f3331cb0e085019.tar.gz
overload.pm: Document &. etc.
Diffstat (limited to 'lib/overload.pm')
-rw-r--r--lib/overload.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/overload.pm b/lib/overload.pm
index 60072f241f..9bd15ce7a5 100644
--- a/lib/overload.pm
+++ b/lib/overload.pm
@@ -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
~~