summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-20 23:49:47 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-20 23:49:47 +0000
commit5d4fa709c52c313242d8c99c393f00bdcd687712 (patch)
tree5c022d6b3578d449704472bb61b76ca282e190d9
parent970c490586e0f01dd70401842b590223949989af (diff)
downloadperl-5d4fa709c52c313242d8c99c393f00bdcd687712.tar.gz
add test for change#4417
p4raw-link: @4417 on //depot/perl: 970c490586e0f01dd70401842b590223949989af p4raw-id: //depot/perl@4418
-rwxr-xr-xt/op/sort.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/op/sort.t b/t/op/sort.t
index f7bba3d263..9abc4105d2 100755
--- a/t/op/sort.t
+++ b/t/op/sort.t
@@ -163,7 +163,10 @@ print $@ ? "not ok 21\n# $@" : "ok 21\n";
## exercise sort builtins... ($a <=> $b already tested)
@a = ( 5, 19, 1996, 255, 90 );
-@b = sort { $b <=> $a } @a;
+@b = sort {
+ my $dummy; # force blockness
+ return $b <=> $a
+} @a;
print ("@b" eq '1996 255 90 19 5' ? "ok 30\n" : "not ok 30\n");
print "# x = '@b'\n";
$x = join('', sort { $a cmp $b } @harry);