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