X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=covop.pl;h=0d670892e7dd5d012f597645dbbaed7f406fbcc1;hb=e9725f0f2d11e349e3f3db752b46929a80a03c1d;hp=9c8284d33ddeba4ec3f11b654268045e8d885bec;hpb=9e7bc0a25ae14affe960a0606d0542677c51abd7;p=ndwebbie.git diff --git a/covop.pl b/covop.pl index 9c8284d..0d67089 100644 --- a/covop.pl +++ b/covop.pl @@ -18,6 +18,8 @@ #**************************************************************************/ use strict; +use warnings FATAL => 'all'; +no warnings qw(uninitialized); $ND::TEMPLATE->param(TITLE => 'CovOp Targets'); @@ -59,10 +61,10 @@ $query->execute($ND::PLANET); my @targets; my $i = 0; while (my ($id,$coords,$metal,$crystal,$eonium,$seccents,$dists,$lastcovop,$user,$max) = $query->fetchrow){ + $i++; push @targets,{Username => $user, Target => $id, Coords => $coords , Metal => $metal, Crystal => $crystal, Eonium => $eonium, SecCents => $seccents , Dists => $dists, MaxResHack => $max, LastCovOp => $lastcovop, List => $list, ODD => $i % 2}; - $i++; } $BODY->param(Targets => \@targets);