From 12a9c803691f506670eb98308dbc5686d775c17d Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Fri, 23 Jan 2015 21:15:51 -0500 Subject: note that sort can't use a lexsub as its SUBNAME (cherry picked from commit 78dc4383933df0ec316c36db90adf49cf626edbb) --- pod/perlsub.pod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pod/perlsub.pod b/pod/perlsub.pod index 027d7bea36..0d9c72915a 100644 --- a/pod/perlsub.pod +++ b/pod/perlsub.pod @@ -864,6 +864,9 @@ any previous C or C declaration. baz(); # recursive call } +It is a known bug that lexical subroutines cannot be used as the C +argument to C. This will be fixed in a future version of perl. + =head3 C vs C What is the difference between "state" subs and "my" subs? Each time that -- cgit v1.2.1