Revision history of "Sum Matching Group in Perl"

Jump to navigation Jump to search

Diff selection: Mark the radio boxes 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.

  • curprev 13: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"