Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > cd71e9abfdd9bdfc8f4aa9f00d8a5bad > files > 1

perl-Text-Query-0.70.0-6.mga1.src.rpm

diff -Naur --exclude '*~' Text-Query-0.07/lib/Text/Query/SolveSimpleString.pm Text-Query-0.07-fix-syntax/lib/Text/Query/SolveSimpleString.pm
--- Text-Query-0.07/lib/Text/Query/SolveSimpleString.pm	1999-06-20 01:00:22.000000000 +0200
+++ Text-Query-0.07-fix-syntax/lib/Text/Query/SolveSimpleString.pm	2009-08-20 09:39:31.000000000 +0200
@@ -49,7 +49,7 @@
   } else {
     @ra = map { [ $_, $self->matchscalar($expr, $_) ] } @$pa;
   }
-  @ra = sort { $b->[$#{@$b}] <=> $a->[$#{@$a}] } @ra;
+  @ra = sort { $b->[-1] <=> $a->[-1] } @ra;
   return wantarray ? @ra : \@ra;
 }