summaryrefslogtreecommitdiff
path: root/lib/overload.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/overload.pm')
-rw-r--r--lib/overload.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/overload.pm b/lib/overload.pm
index c02fddbfab..e5b2f97b6a 100644
--- a/lib/overload.pm
+++ b/lib/overload.pm
@@ -588,7 +588,8 @@ appear as lvalue when the above code is executed.
If the copy constructor is required during the execution of some mutator,
but a method for C<'='> was not specified, it can be autogenerated as a
-string copy if the object is a plain scalar.
+string copy if the object is a plain scalar or a simple assignment if it
+is not.
=over 5
@@ -675,7 +676,8 @@ C<E<lt>=E<gt>> or C<cmp>:
=item I<Copy operator>
can be expressed in terms of an assignment to the dereferenced value, if this
-value is a scalar and not a reference.
+value is a scalar and not a reference, or simply a reference assignment
+otherwise.
=back