summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod2
1 files changed, 2 insertions, 0 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 2553d147bb..54f782cc61 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -765,6 +765,8 @@ all the subroutines are called in a list context.
Lvalue subroutines are convenient, but there are some things to keep
in mind.
+You can only return scalar lvalues.
+
When used with objects, they violate encapsulation. A normal mutator
can check the supplied argument before setting the attribute it is
protecting, an lvalue subroutine cannot.