summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2012-05-25 09:17:17 +0100
committerLuis de Bethencourt <luis@debethencourt.com>2012-05-25 09:17:17 +0100
commit4ebe1c0b78107ac73276585619f75e9022b1d948 (patch)
tree758d47be96e927d9565e7a455f2e904532d8dfdb /scripts
parentb259b5c476f65d18a9fca3c4bcb3a8d3606fd670 (diff)
five-bugs-a-day: use splice to trim the bug list
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/five-bugs-a-day.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/five-bugs-a-day.pl b/scripts/five-bugs-a-day.pl
index f722c3902..c41cac472 100755
--- a/scripts/five-bugs-a-day.pl
+++ b/scripts/five-bugs-a-day.pl
@@ -149,7 +149,7 @@ my @all_bugs = keys %BUGS;
my @bugs = shuffle (\@all_bugs);
# only want first NUM_BUGS bugs
-$#bugs = $NUM_BUGS;
+@bugs = splice (@bugs, 0, $NUM_BUGS);
print "\n";
print "$NUM_BUGS random bugs:\n";