summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-12 22:57:47 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-12 22:57:47 +0000
commit9fdc1d08de8a9ed0db39af3bd6a0da02e31a7029 (patch)
treee828a099239be161910400f6f728a3e0f75817a6 /pod
parentae258fbbee1d7d335bde126dcfa7410083bdbd53 (diff)
downloadperl-9fdc1d08de8a9ed0db39af3bd6a0da02e31a7029.tar.gz
The scalar behaviour of sort is undefined.
p4raw-id: //depot/perl@17210
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod3
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