##
$text = "Average of column 3 for the last " .
scalar(@lines) . " days: $average\n";
####
$text = join '', "Average of column 3 for the last ",
scalar(@lines), " days: $average\n";
####
my $last = (split /:/, $lines[-1])[3];
####
my @tmp = split /:/, $lines[-1];
my $last = $tmp[3];