diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-02 03:42:55 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-02 03:42:55 +0000 |
commit | 4348140855c01942a6531a8decdfe1325fe36f8a (patch) | |
tree | a8e3d298c060b6c29c317e9a39503a2659f1891a /pod/perldelta.pod | |
parent | 17d0df5d7cce81eb4ec807b2a4d86f34932206e7 (diff) | |
download | perl-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.pod | 10 |
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: |