in reply to Re: Getting the count of a particular alphabet using subroutine
in thread Getting the count of a particular alphabet using subroutine

And another one way

$string='Put your text'; $count++ while($string=~ m{t}g);