diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-12 22:57:47 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-12 22:57:47 +0000 |
commit | 9fdc1d08de8a9ed0db39af3bd6a0da02e31a7029 (patch) | |
tree | e828a099239be161910400f6f728a3e0f75817a6 /pod/perlfunc.pod | |
parent | ae258fbbee1d7d335bde126dcfa7410083bdbd53 (diff) | |
download | perl-9fdc1d08de8a9ed0db39af3bd6a0da02e31a7029.tar.gz |
The scalar behaviour of sort is undefined.
p4raw-id: //depot/perl@17210
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index d6dcf4983f..10120edc0f 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4503,8 +4503,7 @@ sockets but not socketpair. =item sort LIST In list context, this sorts the LIST and returns the sorted list value. -In scalar context, sort doesn't do anything and an undefined value is -returned. +In scalar context, the behaviour of C<sort()> is undefined. If SUBNAME or BLOCK is omitted, C<sort>s in standard string comparison order. If SUBNAME is specified, it gives the name of a subroutine |