Skip to content

Instantly share code, notes, and snippets.

@catatsuy
Created March 10, 2015 08:09
Show Gist options
  • Save catatsuy/d029f6d774f5353c4778 to your computer and use it in GitHub Desktop.
Save catatsuy/d029f6d774f5353c4778 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
my $sum = 0;
while(<>) {
if(m/\A# Query_time: ([0-9.]+)/){
$sum = $sum + $1;
}
}
print $sum;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment