Sum Matching Group in Perl: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

13 June 2013

  • curprev 14:1014:10, 13 June 2013Brianegge talk contribs 178 bytes +178 Created page with "Perl script to find a number in matching lines and report the sum. <geshi lang="perl"> perl -ne '$sum += $1 if /in (.*) seconds/; END { print $sum }' </geshi> Category:Perl"