In perl.git, the branch maint-5.18 has been updated <http://perl5.git.perl.org/perl.git/commitdiff/12a9c803691f506670eb98308dbc5686d775c17d?hp=51202371ba68f3f52f13124a3ea1bc3c171e0ee2>
- Log ----------------------------------------------------------------- commit 12a9c803691f506670eb98308dbc5686d775c17d Author: Ricardo Signes <[email protected]> Date: Fri Jan 23 21:15:51 2015 -0500 note that sort can't use a lexsub as its SUBNAME (cherry picked from commit 78dc4383933df0ec316c36db90adf49cf626edbb) ----------------------------------------------------------------------- Summary of changes: pod/perlsub.pod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pod/perlsub.pod b/pod/perlsub.pod index 027d7be..0d9c729 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 -- Perl5 Master Repository
