This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf1ee2b
)
sort pragma tweaks.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 25 Nov 2001 18:12:31 +0000
(18:12 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 25 Nov 2001 18:12:31 +0000
(18:12 +0000)
p4raw-id: //depot/perl@13263
lib/sort.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/sort.pm
b/lib/sort.pm
index
5256a5f
..
c1ea71c
100644
(file)
--- a/
lib/sort.pm
+++ b/
lib/sort.pm
@@
-22,6
+22,7
@@
sub import {
}
$^H |= $sort::hint_bits;
local $_;
+ no warnings 'uninitialized'; # $^H{SORT} bitops would warn
while ($_ = shift(@_)) {
if (/^q(?:uick)?sort$/) {
$^H{SORT} &= ~$sort::sort_bits;
@@
-74,7
+75,7
@@
sort - perl pragma to control sort() behaviour
use sort 'qsort'; # alias for quicksort
- # alias for mergesort: insenstive and stable
+ # alias for mergesort: insens
i
tive and stable
use sort 'safe';
# alias for raw quicksort: sensitive and nonstable