in reply to Nested greps w/ Perl

If you just need the sum of all pattern matches instead of individual counts, consider using just one regex with all patterns joined with | conditions.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!