summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@cpan.org>2015-01-23 21:15:51 -0500
committerRicardo Signes <rjbs@cpan.org>2015-02-26 15:55:50 -0500
commit12a9c803691f506670eb98308dbc5686d775c17d (patch)
treec7fed612742ef1551d5a9d6e5058b7d1cfdfc70a
parent51202371ba68f3f52f13124a3ea1bc3c171e0ee2 (diff)
downloadperl-maint-5.18.tar.gz
note that sort can't use a lexsub as its SUBNAMEmaint-5.18
(cherry picked from commit 78dc4383933df0ec316c36db90adf49cf626edbb)
-rw-r--r--pod/perlsub.pod3
1 files changed, 3 insertions, 0 deletions
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<my sub;> or C<state sub;> declaration.
baz(); # recursive call
}
+It is a known bug that lexical subroutines cannot be used as the C<SUBNAME>
+argument to C<sort>. This will be fixed in a future version of perl.
+
=head3 C<state sub> vs C<my sub>
What is the difference between "state" subs and "my" subs? Each time that