perldelta for method{}
authorFather Chrysostomos <sprout@cpan.org>
Tue, 22 May 2012 05:24:00 +0000 (22:24 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 22 May 2012 05:26:51 +0000 (22:26 -0700)
pod/perldelta.pod

index 1b9db6d..80a4b50 100644 (file)
@@ -380,6 +380,12 @@ C<print &CORE::uc("a"), &CORE::uc("b")> used to print "BB".  The same thing
 would happen with an lvalue subroutine returning the return value of C<uc>.
 Now the value is copied in such cases.
 
+=item *
+
+C<method {}> syntax with an empty block or a block returning an empty list
+used to crash or use some random value left on the stack as its invocant.
+Now it produces an error.
+
 =back
 
 =head1 Known Problems