-#!/bin/perl -w
+#!/usr/bin/env perl
#
# ----------------------------------------------------------------------------
#
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
+# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301, USA.
#
# ----------------------------------------------------------------------------
#
#
# MAILTO=you@nowhere.org
# # send ten random buglinks every day at 16.30
-# 30 16### /usr/bin/perl /path/to/five-bugs-a-day.pl
+# 30 16 * * * /usr/bin/perl /path/to/five-bugs-a-day.pl
#
#
# Yes, it's PERL, sorry.
# Yes, I know the default is 10 bugs.
#
# ----------------------------------------------------------------------------
-#
-# Known bugs:
-# - there may be an issue with apostrophes or quotes in bug summaries,
-# descriptions sometimes get cut off
-#
-# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# subroutines
while ( --$i )
{
my $j = int rand( $i+1 );
- print "j = $j, i = $i \n";
@$array[$i,$j] = @$array[$j,$i];
}
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";