src/hg/utils/automation/Encode.pm 1.63
1.63 2010/04/20 08:12:27 krish
off by one error
Index: src/hg/utils/automation/Encode.pm
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/automation/Encode.pm,v
retrieving revision 1.62
retrieving revision 1.63
diff -b -B -U 4 -r1.62 -r1.63
--- src/hg/utils/automation/Encode.pm 20 Apr 2010 02:43:31 -0000 1.62
+++ src/hg/utils/automation/Encode.pm 20 Apr 2010 08:12:27 -0000 1.63
@@ -207,9 +207,9 @@
my ($configPath, $composite) = @_;
my %expVars = RAFile::readRaFile("$configPath/$expVarsFile", "composite");
%expVars = %{$expVars{$composite}};
my @results;
- for(my $i = 1; $i <= scalar(keys %expVars); ++$i) {
+ for(my $i = 1; $i < scalar(keys %expVars); ++$i) {
push @results, $expVars{"expVar$i"};
}
return @results;
}