diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-05-31 21:54:25 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-05-31 21:54:30 -0700 |
commit | 678e88d18f2fb2f231f8ad5fd2221101c2fe2fe8 (patch) | |
tree | 08277df0c06e201214bed68d7ab9e3ae0a4765ac /pod | |
parent | cafc49b7e349f6d5bb5080948a0b1f85597dd855 (diff) | |
download | perl-678e88d18f2fb2f231f8ad5fd2221101c2fe2fe8.tar.gz |
Revert "Remove a line added by the prev commit"
This reverts commit 6b8305409e650748b2e6fb75634200370b69238b
at Jesse’s request.
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlsub.pod | 2 |
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. |