summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-05-31 21:54:25 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-05-31 21:54:30 -0700
commit678e88d18f2fb2f231f8ad5fd2221101c2fe2fe8 (patch)
tree08277df0c06e201214bed68d7ab9e3ae0a4765ac
parentcafc49b7e349f6d5bb5080948a0b1f85597dd855 (diff)
downloadperl-678e88d18f2fb2f231f8ad5fd2221101c2fe2fe8.tar.gz
Revert "Remove a line added by the prev commit"
This reverts commit 6b8305409e650748b2e6fb75634200370b69238b at Jesse’s request.
-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.