good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: IT's not counting...by jwkrahn (Abbot) |
on Nov 16, 2010 at 07:26 UTC ( [id://871652]=note: print w/replies, xml ) | Need Help?? |
You say that you are trying to count parentheses but you are using the patterns /'\('\d+/ and /'\)'\d+/ which count the string consisting of a parenthesis surrounded by single quotes followed by one or more numerical digits. If you just want to count parentheses then use:
In Section
Seekers of Perl Wisdom
|
|