From: Jarkko Hietaniemi Date: Wed, 12 Jun 2002 22:57:47 +0000 (+0000) Subject: The scalar behaviour of sort is undefined. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9fdc1d08de8a9ed0db39af3bd6a0da02e31a7029;p=p5sagit%2Fp5-mst-13.2.git The scalar behaviour of sort is undefined. p4raw-id: //depot/perl@17210 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index d6dcf49..10120ed 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 is undefined. If SUBNAME or BLOCK is omitted, Cs in standard string comparison order. If SUBNAME is specified, it gives the name of a subroutine