summaryrefslogtreecommitdiff
path: root/pod/perldelta.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-02 03:42:55 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-02 03:42:55 +0000
commit4348140855c01942a6531a8decdfe1325fe36f8a (patch)
treea8e3d298c060b6c29c317e9a39503a2659f1891a /pod/perldelta.pod
parent17d0df5d7cce81eb4ec807b2a4d86f34932206e7 (diff)
downloadperl-4348140855c01942a6531a8decdfe1325fe36f8a.tar.gz
allow XSUBs and prototyped subroutines to be used with sort() (tweaked
variant of patch suggested by Peter Haworth <pmh@edison.ioppublishing.com>) p4raw-id: //depot/perl@4614
Diffstat (limited to 'pod/perldelta.pod')
-rw-r--r--pod/perldelta.pod10
1 files changed, 10 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index e46df77f83..12d26841a1 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -469,6 +469,16 @@ this support (if it is available).
You can Configure -Dusemorebits to turn on both the 64-bit support
and the long double support.
+=head2 Enhanced support for sort() subroutines
+
+Perl subroutines with a prototype of C<($$)> and XSUBs in general can
+now be used as sort subroutines. In either case, the two elements to
+be compared as passed as normal parameters in @_. See L<perlfunc/sort>.
+
+For unprototyped sort subroutines, the historical behavior of passing
+the elements to be compared as the global variables $a and $b remains
+unchanged.
+
=head2 Better syntax checks on parenthesized unary operators
Expressions such as: