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!
In reply to Re: Nested greps w/ Perl
by LanX
in thread Nested greps w/ Perl
by wackattack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |