Don't ask to ask, just ask | |
PerlMonks |
Re: Faster way to do this?by ctilmes (Vicar) |
on Nov 12, 2015 at 16:31 UTC ( [id://1147587]=note: print w/replies, xml ) | Need Help?? |
If you put the match in list context with (), it will return the matches which you can count and discard with a scalar context like this:
In Section
Seekers of Perl Wisdom
|
|