- or download this
for($date){
($h,$m,$s)=split/:/;
...
$m="45" if ($m>=45);
s/\:\d\d\/\:$m/; #replace the minutes with the generalized value
}
- or download this
$parseddata{$date}++ unless grep{$_ eq "$date|$session"}@seen;
push @seen,"$date|$session";
- or download this
my @keys = sort keys %parseddata;
my @values;
...
open(GRAPH, ">/graphs/$datestamp.png) or die "Can't open output file f
+or graph: $!";
binmode GRAPH;
print GRAPH $gd->png;