This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove a line added by the prev commit
authorFather Chrysostomos <sprout@cpan.org>
Wed, 1 Jun 2011 03:07:32 +0000 (20:07 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 1 Jun 2011 03:07:37 +0000 (20:07 -0700)
Lvalue subs *can* return lists

pod/perlsub.pod

index 54f782c..2553d14 100644 (file)
@@ -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.