Change 17210 by jhi@jhibook on 2002/06/12 22:57:47
The scalar behaviour of sort is undefined.
Affected files ...
.... //depot/perl/pod/perlfunc.pod#337 edit
Differences ...
==== //depot/perl/pod/perlfunc.pod#337 (text) ====
Index: perl/pod/perlfunc.pod
--- perl/pod/perlfunc.pod#336~17208~ Wed Jun 12 15:36:15 2002
+++ perl/pod/perlfunc.pod Wed Jun 12 15:57:47 2002
@@ -4503,8 +4503,7 @@
=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
End of Patch.