projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c72c0c0
)
Remove a line added by the prev commit
author
Father Chrysostomos
<sprout@cpan.org>
Wed, 1 Jun 2011 03:07:32 +0000
(20:07 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Wed, 1 Jun 2011 03:07:37 +0000
(20:07 -0700)
Lvalue subs *can* return lists
pod/perlsub.pod
patch
|
blob
|
history
diff --git
a/pod/perlsub.pod
b/pod/perlsub.pod
index
54f782c
..
2553d14
100644
(file)
--- a/
pod/perlsub.pod
+++ b/
pod/perlsub.pod
@@
-765,8
+765,6
@@
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.