]> ruin.nu Git - ndwebbie.git/blobdiff - points.pl
oops, guess I had forgotten about this file
[ndwebbie.git] / points.pl
index 464ad18f79efe85872e0a941dc0f430a74a86491..95845fa09a4e57ce665d24dbc0431e28c771372a 100644 (file)
--- a/points.pl
+++ b/points.pl
@@ -18,6 +18,8 @@
 #**************************************************************************/
 
 use strict;
+use warnings FATAL => 'all';
+no warnings qw(uninitialized);
 
 $ND::TEMPLATE->param(TITLE => 'Top Members');
 
@@ -45,9 +47,9 @@ $query->execute;
 my @members;
 my $i = 0;
 while (my ($username,$defense,$attack,$scan,$humor,$total,$rank) = $query->fetchrow){
+       $i++;
        push @members,{Username => $username, Defense => $defense, Attack => $attack
                , Scan => $scan, Humor => $humor, Total => $total, Rank => $rank, ODD => $i % 2};
-       $i++;
 }
 $BODY->param(Members => \@members);