perldoc -f study [download]
In reply to Re: Count multiple pattern matches by pijll in thread Count multiple pattern matches by johnnywang