diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-20 23:49:47 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-20 23:49:47 +0000 |
commit | 5d4fa709c52c313242d8c99c393f00bdcd687712 (patch) | |
tree | 5c022d6b3578d449704472bb61b76ca282e190d9 | |
parent | 970c490586e0f01dd70401842b590223949989af (diff) | |
download | perl-5d4fa709c52c313242d8c99c393f00bdcd687712.tar.gz |
add test for change#4417
p4raw-link: @4417 on //depot/perl: 970c490586e0f01dd70401842b590223949989af
p4raw-id: //depot/perl@4418
-rwxr-xr-x | t/op/sort.t | 5 |
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); |