diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2012-05-25 09:17:17 +0100 |
---|---|---|
committer | Luis de Bethencourt <luis@debethencourt.com> | 2012-05-25 09:17:17 +0100 |
commit | 4ebe1c0b78107ac73276585619f75e9022b1d948 (patch) | |
tree | 758d47be96e927d9565e7a455f2e904532d8dfdb /scripts | |
parent | b259b5c476f65d18a9fca3c4bcb3a8d3606fd670 (diff) |
five-bugs-a-day: use splice to trim the bug list
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/five-bugs-a-day.pl | 2 |
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"; |